<?php
require_once '../sub/init.php';
header("Cache-control: private");
require_once 'chkUadm.php';
require_once ZEAI.'cache/config_index.php';
require_once ZEAI.'cache/config_tjdiy.php';
require_once ZEAI.'cache/config_up.php';
require_once ZEAI.'sub/zeai_up_func.php';
require_once ZEAI.'sub/www_zeai_cn_sms.php';
function tjdiy_info($id,$k) {
	global $_TJDIY;
	$ARR = json_decode($_TJDIY['tjdiy'],true);
	if (count($ARR) >= 1 && is_array($ARR)){
		foreach ($ARR as $V) {
			if($V['id']==$id){
				switch ($k) {
					case 'title':return $V['title'];break;
					case 'par':return $V['par'];break;
				}			
			}
		}
	}
	return false;
}	
if($submitok == 'ajax_pic_path_s_up'){
	if (ifpostpic($file['tmp_name'])){
		$dbname = setphotodbname('tmp',$file['tmp_name'],'');
		if (!up_send($file,$dbname,0,$_UP['upMsize']))json_exit(array('flag'=>0,'msg'=>'图片写入失败'));
		$newpic = $_ZEAI['up2']."/".$dbname;
		//if (!ifpic($newpic))json_exit(array('flag'=>0,'msg'=>'图片格式错误'));
		AddLog('【前台导航模块】上传图标->url:'.$dbname);
		json_exit(array('flag'=>1,'msg'=>'上传成功','dbname'=>$dbname));
	}else{
		json_exit(array('flag'=>0,'msg'=>'zeai_tmp_name_error'));
	}
}elseif($submitok == 'ajax_wx_gzh_welcome_path_up'){
	if (ifpostpic($file['tmp_name'])){
		$dbname = setphotodbname('tmp',$file['tmp_name'],$session_uid.'weixin_');
		if (!up_send($file,$dbname,0,$_UP['upBsize']))json_exit(array('flag'=>0,'msg'=>'图片写入失败'));
		AddLog('【公众号回复/欢迎图片】上传图片->url:'.$dbname);
		json_exit(array('flag'=>1,'msg'=>'上传成功','dbname'=>$dbname));
	}else{
		json_exit(array('flag'=>0,'msg'=>'zeai_tmp_name_error'));
	}
}elseif($submitok == 'ajax_smstest'){
	$testmob=trimm($testmob);
	if(!ifmob($testmob))json_exit(array('flag'=>0,'msg'=>'请输入正确的手机号码'.$testmob));
	$rtn = Zeai_sendsms_authcode($testmob,cdstr(4));//,'findpass'
	if (empty($rtn)){
		$chkflag = 1;
		$content = '验证码发送成功，请注意查收手机短信';
	}else{
		$chkflag = 0;
		$content = "错误码：$rtn"."-".sms_error($rtn);
	}
	json_exit(array('flag'=>$chkflag,'msg'=>$content));
}
switch ($t) {
	default:
		require_once ZEAI.'cache/config_adm.php';
		require_once ZEAI.'cache/config_wxgzh.php';
		require_once ZEAI.'cache/config_sms.php';
	break;
	case 2:
		require_once ZEAI.'cache/config_wxgzh.php';
		$_GZH['wx_gzh_name'] = dataIO($_GZH['wx_gzh_name'],'out');
		$_GZH['wx_gzh_welcome'] = dataIO($_GZH['wx_gzh_welcome'],'out');
		$_GZH['wx_gzh_hfcontent'] = dataIO($_GZH['wx_gzh_hfcontent'],'out');
		$_GZH['wx_gzh_mb_loveb'] = dataIO($_GZH['wx_gzh_mb_loveb'],'out');
		$_GZH['wx_gzh_mb_msgchat'] = dataIO($_GZH['wx_gzh_mb_msgchat'],'out');
		$_GZH['wx_gzh_mb_udata'] = dataIO($_GZH['wx_gzh_mb_udata'],'out');
		$_GZH['wx_gzh_mb_adminfo'] = dataIO($_GZH['wx_gzh_mb_adminfo'],'out');
		$_GZH['wx_gzh_mb_honor'] = dataIO($_GZH['wx_gzh_mb_honor'],'out');
		$_GZH['wx_gzh_mb_productpay'] = dataIO($_GZH['wx_gzh_mb_productpay'],'out');
	break;
	case 3:
		require_once ZEAI.'cache/config_login.php';
		$_LOGIN['wx_open_appid'] = dataIO($_LOGIN['wx_open_appid'],'out');
		$_LOGIN['wx_open_appsecret'] = dataIO($_LOGIN['wx_open_appsecret'],'out');
		$_LOGIN['qq_login_appid'] = dataIO($_LOGIN['qq_login_appid'],'out');
		$_LOGIN['qq_login_appkey'] = dataIO($_LOGIN['qq_login_appkey'],'out');
	break;
	case 4:
		require_once ZEAI.'cache/config_sms.php';
		$_SMS['sms_sid'] = dataIO($_SMS['sms_sid'],'out');
		$_SMS['sms_apikey'] = dataIO($_SMS['sms_apikey'],'out');
		$_SMS['sms_tplid_authcode'] = dataIO($_SMS['sms_tplid_authcode'],'out');
		$_SMS['sms_tplid_findpass'] = dataIO($_SMS['sms_tplid_findpass'],'out');
		$_SMS['sms_yzmnum'] = $_SMS['sms_yzmnum'];
	break;
	case 5:
		require_once ZEAI.'cache/config_pay.php';
		$_PAY['wxpay_mchid'] = dataIO($_PAY['wxpay_mchid'],'out');
		$_PAY['wxpay_key'] = dataIO($_PAY['wxpay_key'],'out');
		$_PAY['alipay_partner'] = dataIO($_PAY['alipay_partner'],'out');
		$_PAY['alipay_key'] = dataIO($_PAY['alipay_key'],'out');
		$_PAY['alipay_ID'] = $_PAY['alipay_ID'];
	break;
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="<?php echo HOST;?>/res/www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<link href="css/main.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css">
<link href="<?php echo HOST;?>/cache/zeaicolor.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css">
<style>
.tdLbgBAI{background-color:#fff}
@-moz-document url-prefix() {.savebtnbox{bottom:50px}}
.helpC{display:none}
.tdL{line-height:120%;background-color:#fafafa}
.table{border:#eee 1px solid}
.table tr th{color:#009688}
span.tips2{line-height:120%;display:inline-block}
</style>
<script>var up2='<?php echo UP;?>',upMaxMB=<?php echo $_UP['upMaxMB']; ?>;</script>
<script src="js/up.js?<?php echo $_ZEAI['cache_str'];?>"></script>
</head>
<body class="body">
<?php if($submitok == 'navdiy'){
	$i=nav_info($id,'i');$t=nav_info($id,'t');$img=nav_info($id,'img');$url=nav_info($id,'url');$var=nav_info($id,'var');$url2=nav_info($id,'url2');$f=nav_info($id,'f');
	?>
	<style>
	.table{margin:15px 0 0 15px}
    .table td{padding:8px;border:1px solid #eee}
	.table .tdL{width:100px;color:#666}
	.table .tdR img.add{width:60px;height:60px;object-fit:cover;-webkit-object-fit:cover;background-color:#ccc;vertical-align:middle}
	.table .tdR span{vertical-align:middle;font-size:14px;color:#999;margin-left:20px;display:inline-block}
    </style>
    <form id="ZEAIFORM">
        <table class="table W95_ Mtop20" >
        <tr>
          <td class="tdL">导航名称</td>
          <td class="tdR"><input name="title" id="title" type="text" class="input size2" maxlength="30" value="<?php echo $t;?>"  autocomplete="off" /><span>← 请控制在4个字以内</span></td>
        </tr>
        <tr>
          <td class="tdL">导航图标</td>
          <td class="tdR">
        <div class="picli60" id="picli_path">
          <li class="add" id="path_add"></li>
          <?php if(!empty($img)){
                echo '<li><img src="'.$_ZEAI['up2'].'/'.$img.'"><i></i></li>';
            }?>
        </div>
        <br><span>← 正方形.png/.jpg/.gif格式，150*150像素</span></td>
        </tr>
        <tr>
          <td class="tdL">手机端链接</td>
          <td class="tdR"><textarea name="url" rows="3" class="textarea W100_" id="url"><?php echo $url;?></textarea></td>
        </tr>
        <tr>
          <td class="tdL">电脑端链接</td>
          <td class="tdR"><textarea name="url2" rows="3" class="textarea W100_" id="url2"><?php echo $url2;?></textarea></td>
        </tr>
        <tr>
          <td class="tdL"> 导航变量</td>
          <td class="tdR"><input name="var" class="input size2" maxlength="30" id="var" value="<?php echo $var;?>"></td>
        </tr>
        </table>
        <br><br><div class="savebtnbox"><button type="button" id="submit_add" class="btn size3">保存并提交</button></div>
        <input name="id" type="hidden" value="<?php echo $id;?>" />
        <input name="path_s" id="path_s" type="hidden" value="" />
        <input name="uu" type="hidden" value="<?php echo $session_uid;?>">
        <input name="pp" type="hidden" value="<?php echo $session_pwd;?>">
        <input name="submitok" type="hidden" value="cache_navdiy_mod">
	</form>
    <script>
	var up2='<?php echo $_ZEAI['up2'];?>/',upMaxMB=<?php echo $_UP['upMaxMB']; ?>;
	zeai.photoUp({
		btnobj:path_add,
		upMaxMB:upMaxMB,
		url:"var"+zeai.extname,
		submitok:"ajax_pic_path_s_up",
		end:function(rs){
			zeai.msg(0);zeai.msg(rs.msg);
			if (rs.flag == 1){
				picli_path.append('<li><img src="'+up2+rs.dbname+'"><i></i></li>');
				path_s.value=rs.dbname;
				path_add.hide();
				var i=zeai.tag(o(picli_path),'i')[0],img=zeai.tag(o(picli_path),'img')[0];
				i.onclick = function(){
					zeai.confirm('亲~~确认删除么？',function(){
						img.parentNode.remove();path_add.show();path_s.value='';
					});
				}
				img.onclick = function(){parent.piczoom(up2+rs.dbname.replace('_s.','_b.'));}
			}
		}
	});
	window.onload=function(){
		path_s_mod();
		function path_s_mod(){
			var i=zeai.tag(picli_path,'i')[0],img=zeai.tag(picli_path,'img')[0];
			if(zeai.empty(i))return;
			path_add.hide();
			var src=img.src.replace(up2,'');
			path_s.value=src;
			i.onclick = function(){
				zeai.confirm('亲~~确认删除么？',function(){
					img.parentNode.remove();path_add.show();path_s.value='';
				});
			}
			img.onclick = function(){parent.piczoom(up2+src.replace('_s.','_b.'));}
		}
	}
	submit_add.onclick=function(){
		zeai.confirm('<b class="S18">确定提交么？</b><br>亲~~这三项都不为空才会显示导航哦',function(){
			zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){var rs=zeai.jsoneval(e);
				zeai.msg(0);zeai.msg(rs.msg);
				if(rs.flag==1){
					setTimeout(function(){
						if(zeai.empty(rs.out_img)){
							var src='images/navadd.png';
						}else{
							var src=up2+rs.out_img;
						}
						parent.o('img'+<?php echo $id;?>).src=src;
						parent.o('span'+<?php echo $id;?>).html(rs.out_t);
						parent.zeai.iframe(0);
					},1000);
				}
			});
		});
	}
    </script>
<?php exit;}?>
<br>
<form id="ZEAIFORM" name="ZEAIFORM" method="post" enctype="multipart/form-data">
	<!--网站设置-->
	<?php if ($t == 1 || empty($t)) {
		
		if(!in_array('var_jb',$QXARR))exit(noauth());
		
		?>
        <table class="table size1 cols2" style="width:1111px;margin:0 0 0 20px">
		<tr>
			<th colspan="2" align="left" style="border:0">基础设置</td>
			<th colspan="2" align="left" style="border:0">上传相关设置</td>
		</tr>
		<tr>
			<td class="tdL">网站名称简称</td>
			<td class="tdR"><input id="siteName" name="siteName" type="text" class="W400" maxlength="100" value="<?php echo $_ZEAI['siteName'];?>"></td>
			<td class="tdL">上传单个图片最大</td>
			<td class="tdR">
            	<input id="upMaxMB" name="upMaxMB" type="text" class="W30" maxlength="2" value="<?php echo $_UP['upMaxMB'];?>"> MB<span class="tips">正整数，如1,2,10</span>
            	　　　　<font class="C999">视频最大</font>　<input id="upVMaxMB" name="upVMaxMB" type="text" class="W30" maxlength="2" value="<?php echo $_UP['upVMaxMB'];?>"> MB
            </td>
		</tr>
		<tr>
			<td class="tdL">首页Title标题SEO</td>
			<td class="tdR"><input id="indexTitle" name="indexTitle" type="text" class="W400" maxlength="100" value="<?php echo dataIO($_INDEX['indexTitle'],'out');?>"></td>
			<td class="tdL">缩略小图尺寸范围</td>
			<td class="tdR"><input id="upSsize" name="upSsize" type="text" class="W75" maxlength="10" value="<?php echo $_UP['upSsize'];?>"> 像素<span class="tips">推荐100*100(宽*高)，小列表显示图</span></td>
		</tr>
		<tr>
			<td class="tdL">首页关键词SEO</td>
			<td class="tdR"><input id="indexKeywords" name="indexKeywords" type="text" class="W400" maxlength="100" placeholder="Keywords请控制在5个以内，以英文半角逗号隔开" value="<?php echo dataIO($_INDEX['indexKeywords'],'out');?>"></td>
			<td class="tdL">缩略中图尺寸范围</td>
			<td class="tdR"><input id="upMsize" name="upMsize" type="text" class="W75" maxlength="10" value="<?php echo $_UP['upMsize'];?>"> 像素<span class="tips">推荐200*250(宽*高)，用户列表显示图</span></td>	</tr>
		<tr>
			<td class="tdL">首页简介SEO</td>
			<td class="tdR"><textarea name="indexContent" cols="30" rows="2" class="W400" id="indexContent" placeholder="要用于首页SEO搜索引擎优化，Description网站简介，最精短介绍，100字以内"><?php echo dataIO($_INDEX['indexContent'],'out');?></textarea></td>
			<td class="tdL">缩略大图尺寸范围</td>
			<td class="tdR"><input id="upBsize" name="upBsize" type="text" class="W75" maxlength="10" value="<?php echo $_UP['upBsize'];?>"> 像素<span class="tips">推荐720*720(宽*高)，放大显示图</span></td>	</tr>
		<tr>
			<td rowspan="3" class="tdL">前端颜色主色调</td>
			<td rowspan="3" class="tdR">
            <style>
			.mbcolor{padding:10px 0}
			.mbcolor {clear:both;overflow:auto}
			.mbcolor a{display:inline-block;width:30px;height:30px;border-radius:2px;float:left;margin:5px 4px}
			.mbcolor a:hover{filter:alpha(opacity=80);-moz-opacity:0.8;opacity:0.8}
			.mbcolor div.textt{padding-top:10px;clear:both;overflow:auto}
            </style>
            <div class="mbcolor" id="mob_mbcolor_box">
            	<a value="#FA4A2D" style="background-color:#FA4A2D;"></a>
            	<a value="#FF6F6F" style="background-color:#FF6F6F;"></a>
            	<a value="#E83191" style="background-color:#E83191;"></a>
            	<a value="#5EB87B" style="background-color:#5EB87B;"></a>
            	<a value="#F78775" style="background-color:#F78775;"></a>
            	<a value="#FF668A" style="background-color:#FF668A;"></a>
            	<a value="#93817E" style="background-color:#93817E;"></a>
            	<a value="#FF8400" style="background-color:#FF8400;"></a>
            	<a value="#0ebfc0" style="background-color:#0ebfc0;"></a>
            	<a value="#6E6FFF" style="background-color:#6E6FFF;"></a>
                <div class="textt"><input name="mob_mbcolor" id="mob_mbcolor" type="text" class="W80" maxlength="10" value="<?php echo $_ZEAI['mob_mbcolor'];?>" style="background-color:<?php echo $_ZEAI['mob_mbcolor'];?>;color:#fff;border:0"><span class="tips">16进制颜色值，可以自定义，建议深色系，手机+电脑</span></div>
            </div>
            <script>
			zeai.listEach(zeai.tag(mob_mbcolor_box,'a'),function(obj){
				obj.onclick=function(){
					var color=obj.getAttribute("value");
					mob_mbcolor.value=color;
					mob_mbcolor.style.backgroundColor=color;
				}
			});
            </script>
			</td>
			<td class="tdL">手机端前台总风格</td>
			<td class="tdR">
            <input type="radio" name="m_mb" id="m_mb1" class="radioskin" value="1"<?php echo ($_ZEAI['m_mb'] == 1)?' checked':'';?>><label for="m_mb1" class="radioskin-label"><i class="i1"></i><b class="W100">经典</b></label>
            <input type="radio" name="m_mb" id="m_mb2" class="radioskin" value="2"<?php echo ($_ZEAI['m_mb'] == 2)?' checked':'';?>><label for="m_mb2" class="radioskin-label"><i class="i1"></i><b class="W100">轻量化(新)</b></label>
        </td>
		</tr>
		<tr>
		  <td class="tdL">手机端首页风格</td>
		  <td class="tdR">
            <input type="radio" name="m_mb_index" id="m_mb_index1" class="radioskin" value="1"<?php echo ($_ZEAI['m_mb_index'] == 1)?' checked':'';?>><label for="m_mb_index1" class="radioskin-label"><i class="i1"></i><b class="W80">经典多模块</b></label>
            <input type="radio" name="m_mb_index" id="m_mb_index2" class="radioskin" value="2"<?php echo ($_ZEAI['m_mb_index'] == 2)?' checked':'';?>><label for="m_mb_index2" class="radioskin-label"><i class="i1"></i><b class="W80">经典瀑布流</b></label>
            <input type="radio" name="m_mb_index" id="m_mb_index3" class="radioskin" value="3"<?php echo ($_ZEAI['m_mb_index'] == 3)?' checked':'';?>><label for="m_mb_index3" class="radioskin-label"><i class="i1"></i><b class="W80">轻量化(新)</b></label>
          </td>
		  </tr>
		<tr>
		  <td class="tdL">手机端用户主页模版风格</td>
		  <td class="tdR">
            <input type="radio" name="m_mb_u" id="m_mb_u1" class="radioskin" value="1"<?php echo ($_ZEAI['m_mb_u'] == 1)?' checked':'';?>><label for="m_mb_u1" class="radioskin-label"><i class="i1"></i><b class="W100">老经典</b></label>
            <input type="radio" name="m_mb_u" id="m_mb_u2" class="radioskin" value="2"<?php echo ($_ZEAI['m_mb_u'] == 2)?' checked':'';?>><label for="m_mb_u2" class="radioskin-label"><i class="i1"></i><b class="W100">新时尚</b></label>
          
          </td>
		  </tr>
		<tr>
			<td class="tdL">手机、微信端Logo</td>
			<td class="tdR">
				<?php if (!empty($_ZEAI['logo'])) {?>
                    <input name='logo_' type='hidden' value="<?php echo $_ZEAI['logo'];?>" />
                    <a class="pic60" onClick="parent.piczoom('<?php echo $_ZEAI['up2'].'/'.$_ZEAI['logo']; ?>')"><img src="<?php echo $_ZEAI['up2'].'/'.$_ZEAI['logo'].'?'.ADDTIME; ?>?"></a>　
                    <a href="#" class="btn size1" id="logodel">删除</a>　
                <?php }else{echo "<input name='logo' type='file' size='50' class='Caaa W300' />";}?>
                <br><span class='tips2'>先删除后更换，必须png白色透明格式，高度小于114像素，宽度小于200像素</span>
            </td>
			<td class="tdL">手机H5端二维码图片</td>
			<td class="tdR">
				<?php if (!empty($_ZEAI['m_ewm'])) {?>
                    <input name='m_ewm_' type='hidden' value="<?php echo $_ZEAI['m_ewm'];?>" />
                    <a class="pic60" onClick="parent.piczoom('<?php echo $_ZEAI['up2'].'/'.$_ZEAI['m_ewm']; ?>')"><img src="<?php echo $_ZEAI['up2'].'/'.$_ZEAI['m_ewm'].'?'.ADDTIME; ?>?"></a>　
                    <a href="#" class="btn size1" id="m_ewmdel">删除</a>
                <?php }else{echo "<input name='m_ewm' type='file' size='50' class='Caaa W300' />";}?>
                <br><span class='tips2'>先删除后更换，png/gif/jpg格式 ，300*300像素以内，百度搜“二维码生成”，填入二维码H5网址：<font class="blue"><?php echo HOST;?></font></span>
            </td>
		</tr>
        <tr>
		<td class="tdL">手机端底部版权信息</td>
		<td colspan="3" class="tdR"><textarea name="m_bottom" class="textarea W100_ center"><?php echo dataIO($_ZEAI['m_bottom'],'out');?></textarea></td>
		</tr>
        <tr>
			<td class="tdL">微信分享标题</td>
			<td class="tdR"><input id="indexShareT" name="indexShareT" type="text" class="W400" maxlength="100" placeholder="要用于首页微信分享标题" value="<?php echo dataIO($_INDEX['indexShareT'],'out');?>"></td>
			<td class="tdL">微信分享图片</td>
			<td class="tdR">
				<?php if (!empty($_INDEX['indexShareP'])) {?>
                    <input name='indexShareP_' type='hidden' value="<?php echo $_INDEX['indexShareP'];?>" />
                    <a class="pic60" onClick="parent.piczoom('<?php echo $_ZEAI['up2'].'/'.$_INDEX['indexShareP']; ?>')"><img src="<?php echo $_ZEAI['up2'].'/'.$_INDEX['indexShareP'].'?'.ADDTIME; ?>?"></a>　
                    <a href="#" class="btn size1" id="indexSharePdel">删除</a>
                <?php }else{echo "<input name='indexShareP' type='file' size='50' class='Caaa W300' />";}?>
                <br><span class='tips2'>先删除后更换，png/gif/jpg格式 ，200*200像素，微信分享首页时显示</span>
            </td>	
		</tr>
        <tr>
			<td class="tdL">微信分享简介</td>
			<td class="tdR"><textarea name="indexShareC" cols="30" rows="2" class="W400" id="indexShareC" placeholder="要用于首页微信分享简介，最精短介绍，100字以内"><?php echo dataIO($_INDEX['indexShareC'],'out');?></textarea></td>
			<td class="tdL">关注公众号<br>自动获取粉丝微信头像</td>
			<td class="tdR"><input type="checkbox" name="wx_gzh_getphoto_s" id="wx_gzh_getphoto_s" disabled class="switch" value="1"<?php echo ($_GZH['wx_gzh_getphoto_s'] == 1)?'':'';?>><label for="wx_gzh_getphoto_s" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> <span class="tips">(腾讯已关闭，暂停使用)</span></td>	
		</tr>
        
        <tr>
        <td class="tdL">电脑端</td>
            <td class="tdR">
            <input type="radio" name="pc_mbkind" id="pc_mbkind1" class="radioskin" value="1"<?php echo ($_ZEAI['pc_mbkind'] == 1)?' checked':'';?>>
            <label for="pc_mbkind1" class="radioskin-label"><i class="i1"></i><b class="W100">官方默认风格</b></label>
            <input type="radio" name="pc_mbkind" id="pc_mbkind2" class="radioskin" value="2" disabled>
            <label for="pc_mbkind2" class="radioskin-label"><i class="i1"></i><b class="W100">时尚H5风格</b></label>
            <br>
            <div>公众号二维码弹窗 <input type="checkbox" name="pc_gzhpagewin" id="pc_gzhpagewin" class="switch" value="1"<?php echo ($_ZEAI['pc_gzhpagewin'] == 1)?' checked':'';?>><label for="pc_gzhpagewin" class="switch-label"><i></i><b>开启</b><b>关闭</b></label><div class='tips2'>开启后电脑端游客或未关注公众号的用户浏览会弹出公众号二维码</div></div>
           
        </td>
        <td class="tdL">电脑端Logo</td>
        <td class="tdR">
            <?php if (!empty($_ZEAI['pclogo'])) {?>
            <input name='pclogo_' type='hidden' value="<?php echo $_ZEAI['pclogo'];?>" />
            <a class="pic60" onClick="parent.piczoom('<?php echo $_ZEAI['up2'].'/'.$_ZEAI['pclogo']; ?>')"><img src="<?php echo $_ZEAI['up2'].'/'.$_ZEAI['pclogo'].'?'.ADDTIME; ?>?"></a>　
            <a href="#" class="btn size1" id="pclogodel">删除</a>
            <?php }else{echo "<input name='pclogo' type='file' size='50' class='Caaa W300' />";}?>					
            <br><span class='tips2'>先删除后更换，白色.png透明格式，最佳尺寸：66*66像素正方形</span>
        </td>	
        </tr>
		<tr>
		<td class="tdL">电脑端底部版权信息</td>
		<td colspan="3" class="tdR"><textarea name="pc_bottom" class="textarea W100_ center"><?php echo dataIO($_ZEAI['pc_bottom'],'out');?></textarea></td>
		</tr>
		<tr>

		<tr>
			<td class="tdL">虚拟币名称</td>
			<td class="tdR"><input id="loveB" name="loveB" type="text" class="W100" maxlength="20" value="<?php echo $_ZEAI['loveB'];?>"><span class="tips">如：爱豆，Love币</span></td>
			<td class="tdL">大图是否打水印</td>
			<td class="tdR"><input type="checkbox" name="ifwaterimg" id="ifwaterimg" class="switch" value="1"<?php echo ($_UP['ifwaterimg'] == 1)?' checked':'';?>><label for="ifwaterimg" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></td>
		</tr>

		<tr>
			<td class="tdL">强制更新缓存</td>
			<td class="tdR">
            <input id="cache_str" name="cache_str" type="text" class="W100" maxlength="8" value="<?php echo $_ZEAI['cache_str'];?>">
            <button type="button" class="btn size1" id="cache_update"><i class="ico">&#xe67d;</i> 更新缓存</button>
            <br>
            <span class="tips2">
            用途：如果发现更改的设置没有生效，比如：修改了地区或用户资料字段等</span>
            
            </td>
			<td class="tdL">大图水印图片</td>
			<td class="tdR">
			<?php if (!empty($_UP['waterimg'])) {?>
            <input name='waterimg_' type='hidden' value="<?php echo $_UP['waterimg'];?>" />
			<a class="pic60" onClick="parent.piczoom('<?php echo $_ZEAI['up2'].'/'.$_UP['waterimg']; ?>')"><img src="<?php echo $_ZEAI['up2'].'/'.$_UP['waterimg'].'?'.ADDTIME; ?>"></a>　
			<a href="#" class="btn size1" id="waterimgdel">删除</a>　
			<?php }else{echo "<input name='waterimg' type='file' size='50' class='Caaa W300' />";}?>
            <br><span class='tips2'>先删除后更换，必须.png透明格式，160*70像素，</span>
            </td>	
        </tr>
       
        
		<tr>
			<th colspan="2" align="left" style="border:0">其它设置 <span class="tips">（请在官方指导下更改）</span></th>
			<th colspan="2" align="left" style="border:0">&nbsp;</th>
		</tr>
        <?php $db = json_decode($_ZEAI['db'],true);?>
		<tr>
			<td class="tdL">静态资源/目录</td>
			<td class="tdR"><input id="res2" name="res2" type="text" class="W200" maxlength="100" value="<?php echo $_ZEAI['res2'];?>" ><span class="tips">请勿更改</span></td>
			<td class="tdL">前端最多显示记录数</td>
			<td class="tdR"><input id="limit" name="limit" type="text" class="W50" maxlength="8" value="<?php echo $_ZEAI['limit'];?>"> 条<span class="tips">前台列表最多显示记录，推荐500，越少打开速度越快</span></td>
		</tr>
		<tr>
			<td class="tdL">照片域名/目录</td>
			<td class="tdR"><input id="up2" name="up2" type="text" class="W200" maxlength="100" value="<?php echo (empty($_ZEAI['up2']))?HOST.'/up':$_ZEAI['up2'];?>" ><span class="tips">请勿更改</span></td>
			<td class="tdL">后台最多显示记录数</td>
			<td class="tdR"><input id="admPageSize" name="admPageSize" type="text" class="W50" maxlength="5" value="<?php echo $_ADM['admPageSize'];?>"> 条<span class="tips">列表一页显示记录数，推荐15，越少打开速度越快</span></td>
		  </tr>
		<tr>
			<td class="tdL">后台域名/目录</td>
			<td class="tdR"><input id="adm2" name="adm2" type="text" class="W200" maxlength="100" value="<?php echo $_ZEAI['adm2'];?>"><span class="tips">可更改，需要上服务器重命名目录</span></td>
			<td class="tdL">后台默认分页</td>
			<td class="tdR"><input id="admLimit" name="admLimit" type="text" class="W50" maxlength="8" value="<?php echo $_ADM['admLimit'];?>"> 条<span class="tips">列表最多显示记录数，推荐500，越少打开速度越快</span></td>
		  </tr>
		<tr>
			<td class="tdL">后台左上角名称</td>
			<td class="tdR"><input id="admSiteName" name="admSiteName" type="text" class="W200" maxlength="20" value="<?php echo dataIO($_ADM['admSiteName'],'out');?>"></td>
			<td class="tdL">手机端后台颜色风格</td>
			<td class="tdR">
            
            <div class="mbcolor" id="mob_mbcolor_adm_box">
            	<a value="#FA4A2D" style="background-color:#FA4A2D;"></a>
            	<a value="#FF6F6F" style="background-color:#FF6F6F;"></a>
            	<a value="#E83191" style="background-color:#E83191;"></a>
            	<a value="#009688" style="background-color:#009688;"></a>
            	<a value="#F78775" style="background-color:#F78775;"></a>
            	<a value="#FF589B" style="background-color:#FF589B;"></a>
            	<a value="#93817E" style="background-color:#93817E;"></a>
            	<a value="#FF8400" style="background-color:#FF8400;"></a>
            	<a value="#0ebfc0" style="background-color:#0ebfc0;"></a>
            	<a value="#2B95D3" style="background-color:#2B95D3;"></a>
                <div class="textt"><input name="mob_mbcolor_adm" id="mob_mbcolor_adm" type="text" class="W80" maxlength="10" value="<?php echo $_ADM['color'];?>" style="background-color:<?php echo $_ADM['color'];?>;color:#fff;border:0"><span class="tips">16进制颜色值，可以自定义，建议深色系</span></div>
            </div>
            <script>
			zeai.listEach(zeai.tag(mob_mbcolor_adm_box,'a'),function(obj){
				obj.onclick=function(){
					var color=obj.getAttribute("value");
					mob_mbcolor_adm.value=color;
					mob_mbcolor_adm.style.backgroundColor=color;
				}
			});
            </script>
            
            </td>
		</tr>
		</table>
        <input name="submitok" type="hidden" value="cache_config">
        <br><br><br><br><br>
        <div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
	<?php }elseif($t == 2){
		
		if(!in_array('var_gzh',$QXARR))exit(noauth());
		
	?>
        <table class="table size1 cols2" style="width:1111px;margin:0 0 0 20px">
		<tr>
			<th colspan="4" align="left" style="border:0">公众号(服务号)基本信息　<font class="tips FR"><a href="https://mp.weixin.qq.com" target="_blank" class="aQING">申请/管理 微信公众号</a></font></th>
		</tr>
		<tr>
			<td class="tdL">公众号名称</td>
			<td class="tdR"><input id="wx_gzh_name" name="wx_gzh_name" type="text" class="W300" maxlength="100" value="<?php echo $_GZH['wx_gzh_name'];?>"></td>
			<td align="left" class="tdL">公众号appid</td>
			<td align="left"class="tdR"><input id="wx_gzh_appid" name="wx_gzh_appid" type="text" class="W300" maxlength="100" value="<?php echo $_ZEAI['wx_gzh_appid'];?>"></td>
		</tr>
		<tr>
			<td class="tdL">公众号token</td>
			<td class="tdR"><input id="wx_gzh_token" name="wx_gzh_token" type="text" class="W300" maxlength="100" value="<?php echo $_GZH['wx_gzh_token'];?>"></td>
			<td align="left" class="tdL">公众号appsecret</td>
			<td align="left"class="tdR"><input id="wx_gzh_appsecret" name="wx_gzh_appsecret" type="text" class="W300" maxlength="100" value="<?php echo $_ZEAI['wx_gzh_appsecret'];?>"></td>
		</tr>
		<tr>
			<td class="tdL">公众号二维码</td>
			<td class="tdR">
            
			<?php if (!empty($_GZH['wx_gzh_ewm'])) {?>
            <input name='subscribe_' type='hidden' value="<?php echo $_GZH['wx_gzh_ewm'];?>" />
			<a class="pic60" onClick="parent.piczoom('<?php echo $_ZEAI['up2'].'/'.$_GZH['wx_gzh_ewm']; ?>')"><img src="<?php echo $_ZEAI['up2'].'/'.$_GZH['wx_gzh_ewm'].'?'.ADDTIME; ?>"></a>　
			<a href="#" class="btn size1" id="subscribedel">删除</a>　
			<?php }else{echo "<input name='subscribe' type='file' size='50' class='Caaa W300' /><br><span class='tips2'>必须gif/jpg/png格式</span>";}?>
            
            </td>
			<td align="left" class="tdL">公众号菜单</td>
			<td align="left"class="tdR"><a class="btn" onClick="zeai.iframe('公众号底部自定义菜单','var_gzhmenu.php',900,550)">公众号底部菜单设置</a></td>
	</tr>
		<tr><td height="20" colspan="4" align="left" style="border:0"></td></tr>
		<tr>
			<th colspan="2" align="left" style="border:0">关注公众号欢迎信息
			<div id="welcome" class="helpC S14">会员关注公众号后，公众号会自动推送此内容到窗口<br><b>请注意以下三点：</b><br>1. 系统会在最前面加上网友“昵称”<br>2. 内容请控制点在400字节以内<br>3. 内有超链接源码，请在官方客服指导下进行修改，以防程序出错。</div><img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:welcome,title:'关注公众号欢迎信息',w:400,h:280});">
			</th>
			<th colspan="2" align="left" style="border:0">公众号自动回复信息<div id="hfcontent" class="helpC S14">如果会员与公众号互动，输入消息，会自动回复此内容。<br><b>请注意以下二点：</b><br>1. 内容请控制点在400字节以内<br>2. 如果要加超链接源码，请在官方客服指导下进行修改，以防程序出错</div><img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:hfcontent,title:'公众号自动回复信息',w:400,h:240});"></th>
		</tr>
		<tr>
			<th colspan="2" align="left">
            <!---->
            <table border="0" class="W100_">
            <tr>
            <td width="60" style="border:0"><input type="radio" name="wx_gzh_welcome_kind" id="wx_gzh_welcome_kind1" class="radioskin" value="text"<?php echo ($_GZH['wx_gzh_welcome_kind'] == 'text')?' checked':'';?>><label for="wx_gzh_welcome_kind1" class="radioskin-label"><i class="i1"></i><b>文本</b></label></td>
            <td align="left" style="border:0"><textarea name="wx_gzh_welcome" id="wx_gzh_welcome" cols="50" rows="6" class="textarea W90_"><?php echo dataIO($_GZH['wx_gzh_welcome'],'wx');?></textarea></td>
            </tr>
            <tr>
            <td width="60" style="border:0"><input type="radio" name="wx_gzh_welcome_kind" id="wx_gzh_welcome_kind2" class="radioskin" value="pic"<?php echo ($_GZH['wx_gzh_welcome_kind'] == 'pic')?' checked':'';?>><label for="wx_gzh_welcome_kind2" class="radioskin-label"><i class="i1"></i><b>图片</b></label></td>
            <td align="left" style="border:0">
            <div class="picli60" id="p_s_box1">
            <li class="add" id="p_s_btn1"></li>
            <?php $pspath_s1 = $_GZH['wx_gzh_welcome_path'];if(!empty($pspath_s1)){echo '<li><img src="'.UP.$pspath_s1.'"><i></i></li><span class="tips2">先删除后更换</span>';}?>
            </div>
            <input name="wx_gzh_welcome_path" id="wx_gzh_welcome_path" type="hidden" value="" />
            <script>adm_path_up({boxid:o(p_s_box1),btnid:o(p_s_btn1),inputid:o(wx_gzh_welcome_path),url:'var.php',submitok_add:'ajax_wx_gzh_welcome_path_up'});</script>
            </td>
            </tr>
            <tr>
              <td style="border:0"><input type="radio" name="wx_gzh_welcome_kind" id="wx_gzh_welcome_kind3" class="radioskin" value="news"<?php echo ($_GZH['wx_gzh_welcome_kind'] == 'news')?' checked':'';?>><label for="wx_gzh_welcome_kind3" class="radioskin-label"><i class="i1"></i><b>图文</b></label></td>
              <td align="left" style="border:0">
              
              
              
                <table style="border:#eee 1px solid">
                <tr><td width="30" align="left" style="border:0">标题</td><td align="left" style="border:0"><input name="wx_gzh_welcome_news_t" type="text" class="W98_" value="<?php echo stripslashes($_GZH['wx_gzh_welcome_news_t']);?>" maxlength="200" placeholder="100字节以内"></td></tr>
                <tr><td width="30" align="left" style="border:0">图片</td><td align="left" style="border:0">
                
                <div class="picli60" id="p_s_box3">
                <li class="add" id="p_s_btn3"></li>
                <?php $path_s3 = $_GZH['wx_gzh_welcome_news_path'];if(!empty($path_s3)){echo '<li><img src="'.UP.$path_s3.'"><i></i></li><span class="tips2">先删除后更换</span>';}?>
                </div>
                <input name="wx_gzh_welcome_news_path" id="wx_gzh_welcome_news_path" type="hidden" value="" />
                <script>adm_path_up({boxid:o(p_s_box3),btnid:o(p_s_btn3),inputid:o(wx_gzh_welcome_news_path),url:'var.php',submitok_add:'ajax_wx_gzh_welcome_path_up'});</script>
                
                </td></tr>
                <tr><td width="30" align="left" style="border:0">内容</td><td align="left" style="border:0"><textarea name="wx_gzh_welcome_news_c" cols="50" rows="3" class="W98_" style="display:inline-block" placeholder="100字节以内"><?php echo dataIO($_GZH['wx_gzh_welcome_news_c'],'wx');?></textarea></td></tr>
                <tr><td width="30" align="left" style="border:0">链接</td><td align="left" style="border:0"><input name="wx_gzh_welcome_news_url" type="text" class="W98_" value="<?php echo stripslashes($_GZH['wx_gzh_welcome_news_url']);?>" size="50" maxlength="100"></td></tr>
                </table>
              
              
              </td>
            </tr>
            </table>
            <!---->
            </th>
		  <th colspan="2" valign="top">
            <!---->
            <table border="0" class="W100_">
            <tr>
            <td width="60" style="border:0"><input type="radio" name="wx_gzh_hfcontent_kind" id="wx_gzh_hfcontent_kind1" class="radioskin" value="text"<?php echo ($_GZH['wx_gzh_hfcontent_kind'] == 'text')?' checked':'';?>><label for="wx_gzh_hfcontent_kind1" class="radioskin-label" id="wx_gzh_hfcontent_textbtn"><i class="i1"></i><b>文本</b></label></td>
            <td align="left" style="border:0"><textarea name="wx_gzh_hfcontent" id="wx_gzh_hfcontent" cols="50" rows="6" class="textarea W90_"><?php echo dataIO($_GZH['wx_gzh_hfcontent'],'wx');?></textarea></td>
            </tr>
            <tr>
            <td width="60" style="border:0"><input type="radio" name="wx_gzh_hfcontent_kind" id="wx_gzh_hfcontent_kind2" class="radioskin" value="pic"<?php echo ($_GZH['wx_gzh_hfcontent_kind'] == 'pic')?' checked':'';?>><label for="wx_gzh_hfcontent_kind2" class="radioskin-label" id="wx_gzh_hfcontent_picbtn"><i class="i1"></i><b>图文</b></label></td>
            <td align="left" style="border:0">
            <div class="picli60" id="p_s_box2">
            <li class="add" id="p_s_btn2"></li>
            <?php $pspath_s1 = $_GZH['wx_gzh_hfcontent_path'];if(!empty($pspath_s1)){echo '<li><img src="'.UP.$pspath_s1.'"><i></i></li><span class="tips2">先删除后更换</span>';}?>
            </div>
            <input name="wx_gzh_hfcontent_path" id="wx_gzh_hfcontent_path" type="hidden" value="" />
            <script>
            adm_path_up({boxid:o(p_s_box2),btnid:o(p_s_btn2),inputid:o(wx_gzh_hfcontent_path),url:'var.php',submitok_add:'ajax_wx_gzh_welcome_path_up'});
            </script>
            </td>
            </tr>
            </table>
            <!---->
          </th>
		</tr>
		<tr><td height="20" colspan="4" align="left" style="border:0"></td></tr>
		<tr>
			<th colspan="4" align="left" style="border:0">微信模板消息通知设置 <span class="tips">(请在下面填写对应的<b>模板ID</b>)</span>
			  <div id="wx_gzh_mb" class="helpC S14">登录公众平台后，左侧菜单 > 添加功能插件 > 模板消息 > 申请 > <b>主营 (IT科技，互联网|电子商务)</b>　<b>副营行业(其他，其他)</b><br>申请理由：业务需要，有时需要发送一些通知类消息，望通过！！！<br>注意：行业必须要选对，否则无效，特别是副营行业(<font class="Cf00">其他，其他</font>)，第一次申请时选择的不生效（微信bug），需二次修改才生效</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:wx_gzh_mb,title:'公众号自动回复信息',w:600,h:250});"> <span class="S12">公众号模版消息 <img src="images/d2.gif"> 所在行业：主营 (IT科技，互联网|电子商务)　副营行业(其他，其他)</span>
			</th>
		</tr>
		<tr>
			<td rowspan="2" class="tdL C999">资金变动提醒</td>
			<td colspan="3" class="tdR C999">
				OPENTM207679800 <img src="images/d2.gif"> <input id="wx_gzh_mb_loveb" name="wx_gzh_mb_loveb" type="text" class="W400 Caaa" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_loveb'];?>">
				<span class="tips">此模版新客户添加已失效，新客户请留空，新客户埴写下面没失效的</span>
			</td>
		  </tr>
		<tr>
			<td colspan="3" class="tdR">
				OPENTM415437054 <img src="images/d2.gif"> <input id="wx_gzh_mb_loveb2" name="wx_gzh_mb_loveb2" type="text" class="W400" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_loveb2'];?>">
				<div id="gzh_mb_loveb2" class="helpC S14">请登录公众平台后在左侧菜单 > 模板消息 > 模板库 > 搜索“<font class="Cf00">账户资金变动提醒</font>”找到编号：OPENTM415437054，点击 详情 > 添加 > 后可获得该模版ID，其他模版消息同理。。。</div>
				
                <img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:gzh_mb_loveb2,title:'公众号自动回复信息',w:400,h:230});">
			</td>
		  </tr>
		<tr>
		  <td rowspan="3" class="tdL C999 ">到账提醒</td>
		  <td colspan="3" class="tdR C999">OPENTM400265867 <img src="images/d2.gif"> <input id="wx_gzh_mb_productpay" name="wx_gzh_mb_productpay" type="text" class="W400 Caaa" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_productpay'];?>"><span class="tips">此模版新客户添加已失效，新客户请留空，新客户埴写下面没失效的</span></td>
		  </tr>
		<tr>
		  <td colspan="3" class="tdR C999">OPENTM204602735 <img src="images/d2.gif"> <input id="wx_gzh_mb_productpay2" name="wx_gzh_mb_productpay2" type="text" class="W400 Caaa" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_productpay2'];?>"><span class="tips">此模版新客户添加已失效，新客户请留空，新客户埴写下面没失效的</span></td>
		  </tr>
		<tr>
		  <td colspan="3" class="tdR">OPENTM417991932 <img src="images/d2.gif"> <input id="wx_gzh_mb_productpay3" name="wx_gzh_mb_productpay3" type="text" class="W400" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_productpay3'];?>"><div id="OPENTM417991932" class="helpC S14">请登录公众平台后在左侧菜单 > 模板消息 > 模板库 > 搜索“<font class="Cf00">充值到账提醒</font>”找到编号：OPENTM417991932，点击 详情 > 添加 > 后可获得该模版ID，其他模版消息同理。。。</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:OPENTM417991932,title:'公众号自动回复信息',w:400,h:230});"></td>
		  </tr>
		<tr>
		  <td class="tdL">后台操作提醒</td>
		  <td colspan="3" class="tdR">
          
          OPENTM207104826 <img src="images/d2.gif"> <input id="wx_gzh_mb_adminfo" name="wx_gzh_mb_adminfo" type="text" class="W400" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_adminfo'];?>">
          <div id="wx_gzh_mb_adminfo_help" class="helpC S14">请登录公众平台后在左侧菜单 > 模板消息 > 模板库 > 搜索“<font class="Cf00">后台操作提醒</font>”找到编号：OPENTM207104826，点击 详情 > 添加 > 后可获得该模版ID，其他模版消息同理。。。</div>
          <img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:wx_gzh_mb_adminfo_help,title:'公众号自动回复信息',w:400,h:230});">
          
          </td>
		  </tr>
		<tr>
		  <td rowspan="2" class="tdL">用户咨询提醒</td>
		  <td colspan="3" class="tdR C999">OPENTM202119578 <img src="images/d2.gif"> <input id="wx_gzh_mb_msgchat" name="wx_gzh_mb_msgchat" type="text" class="W400 Caaa" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_msgchat'];?>"><span class="tips">此模版新客户添加已失效，新客户请留空，新客户埴写下面没失效的</span></td>
		  </tr>
          
		<tr>
		  <td colspan="3" class="tdR">OPENTM401760085 <img src="images/d2.gif"> <input id="wx_gzh_mb_msgchat2" name="wx_gzh_mb_msgchat2" type="text" class="W400" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_msgchat2'];?>">
          
          <div id="OPENTM401760085" class="helpC S14">请登录公众平台后在左侧菜单 > 模板消息 > 模板库 > 搜索“<font class="Cf00">新咨询通知</font>”找到编号：OPENTM401760085，点击 详情 > 添加 > 后可获得该模版ID，其他模版消息同理。。。</div>
          <img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:OPENTM401760085,title:'公众号自动回复信息',w:400,h:230});">

          </td>
		  </tr>
          
		<tr>
		  <td class="tdL">会员资料审核提醒</td>
		  <td colspan="3" class="tdR">OPENTM201057607 <img src="images/d2.gif"> <input id="wx_gzh_mb_udata" name="wx_gzh_mb_udata" type="text" class="W400" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_udata'];?>">
          <div id="OPENTM201057607" class="helpC S14">请登录公众平台后在左侧菜单 > 模板消息 > 模板库 > 搜索“<font class="Cf00">会员资料审核提醒</font>”找到编号：OPENTM201057607，点击 详情 > 添加 > 后可获得该模版ID，其他模版消息同理。。。</div>
          <img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:OPENTM201057607,title:'公众号自动回复信息',w:400,h:230});">
          </td>
		  </tr>
            <tr>
            <td rowspan="2" class="tdL">认证通知</td>
            <td colspan="3" class="tdR C999">OPENTM204559869 <img src="images/d2.gif"> <input id="wx_gzh_mb_honor" name="wx_gzh_mb_honor" type="text" class="W400 Caaa" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_honor'];?>"><span class="tips">此模版新客户添加已失效，新客户请留空，新客户埴写下面没失效的</span></td>
            </tr>
            
            <tr>
            <td colspan="3" class="tdR">OPENTM415975057 <img src="images/d2.gif"> <input id="wx_gzh_mb_honor2" name="wx_gzh_mb_honor2" type="text" class="W400" maxlength="100" value="<?php echo $_GZH['wx_gzh_mb_honor2'];?>">
            <div id="OPENTM415975057" class="helpC S14">请登录公众平台后在左侧菜单 > 模板消息 > 模板库 > 搜索“<font class="Cf00">身份认证结果通知</font>”找到编号：OPENTM415975057，点击 详情 > 添加 > 后可获得该模版ID，其他模版消息同理。。。</div>
            <img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:OPENTM415975057,title:'公众号自动回复信息',w:400,h:230});">
            </td>
            </tr>
            
        <input name="submitok" type="hidden" value="cache_gzh">
		</table>
        
<br><br><br><br><br>
<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
        
        
	<!--QQ/微信登录API设置-->
	<?php }elseif($t == 3){
		
		if(!in_array('var_qqloginemail',$QXARR))exit(noauth());
		
	?>		

		<table class="table size1 cols2" style="width:1111px;margin:0 0 0 20px">
		<tr>
			<th colspan="4" align="left" style="border:0">微信开放平台
				<div id="wx_open" class="helpC S14">
主要应用于多终端帐号登录使用，如电脑，APP，微信等帐号互通，进入 <a href="https://open.weixin.qq.com/" target="_blank" class="aQING">微信开放平台</a><br><br>
１．顶部【管理中心】，下面第二个【网站应用】然后【创建网站应用】，创建成功后点【查看】就可以看到当前网站的AppID和AppSecret了<br><br>
２．顶部【管理中心】，下面第三个【公众帐号】然后【绑定公众号】				
<br>
				</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:wx_open,title:'微信登录开放平台设置',w:600,h:300});">
			　<font class="tips FR">注册/申请微信开放平台帐号：<a href="https://open.weixin.qq.com/" target="_blank" class="aQING"> 微信开放平台</a></font>
			</th>
		</tr>
		<tr>
			<td class="tdL">微信开放平台appid</td>
			<td class="tdR"><input id="wx_open_appid" name="wx_open_appid" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['wx_open_appid'];?>"></td>
			<td align="left" class="tdL">微信开放平台appsecret</td>
			<td align="left"class="tdR"><input id="wx_open_appsecret" name="wx_open_appsecret" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['wx_open_appsecret'];?>"></td>
		</tr>
        
		<tr><th colspan="4" align="left" style="border:0">&nbsp;</th></tr>
		<tr>
			<th colspan="4" align="left" style="border:0">QQ互联
				<div id="qq_login" class="helpC S14">
                    登录到QQ互联，进入 <a href="https://connect.qq.com/" target="_blank" class="aQING">QQ互联平台</a>，用时间用的长QQ号登录<br><br>
                    １．顶部【应用管理】，网站应用 > 创建应用 > 创建网站应用<br>
                    ２．网站回调域，如：<font class="blue"><?php echo HOST; ?>/api/qq/login/CS.php</font>，域名换成自己的
				</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:qq_login,title:'QQ互联设置',w:600,h:240});">
			　<font class="tips FR">注册/申请QQ互联平台帐号：<a href="https://connect.qq.com/" target="_blank" class="aQING">QQ互联平台</a></font>
			</th>
		</tr>
		<tr>
			<td class="tdL">QQ网站应用appid</td>
			<td class="tdR"><input id="qq_login_appid" name="qq_login_appid" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['qq_login_appid'];?>"></td>
			<td align="left" class="tdL">QQ网站应用appkey</td>
			<td align="left"class="tdR"><input id="qq_login_appkey" name="qq_login_appkey" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['qq_login_appkey'];?>"></td>
		</tr>
        
        
		<tr><th colspan="4" align="left" style="border:0">&nbsp;</th></tr>
		<tr>
			<th colspan="4" align="left" style="border:0">马甲APP
				<div id="mj_login" class="helpC S14">
                    已购买马甲APP的客户才需要设置，如未购买请忽略，登录马甲后台后进行以下两个设置：<br><br>
                    １．在马甲后台【高级配置】>【开发者配置】>【应用授权】增加，如《金媒相亲系统》，增加完成后，会看到有一个secret密钥，然后复制填到金媒后台“马甲应用secret密钥”<br>
                    ２．在马甲后台【高级配置】>【开发者配置】>【域名白名单】增加金媒相亲系统域名，如：<font class="blue"><?php echo HOST; ?></font>，域名换成自己的<br>
                    ３．在马甲后台【运营中心】>【消息/推送】>【社区助手】>自定义助手，新增一个，这个助手相当于微信公众号，也可以设置菜单，填相亲网名称，新增完成后，点这个新增的助手【管理】进入，再点右上角【配置】，拷贝里面的secret拷到相亲网后台“社区助手secret密钥”
				</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:mj_login,title:'马甲APP设置',w:600,h:440});">
			</th>
		</tr>
		<tr>
			<td class="tdL">马甲客户端域名</td>
			<td class="tdR"><input id="mj_domain" name="mj_domain" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['mj_domain'];?>"><span class="tips2">开头加https://或http://，结尾去掉/号，后台域名也可以</span></td>
			<td align="left" class="tdL">马甲应用secret密钥</td>
			<td align="left"class="tdR"><input id="mj_secret" name="mj_secret" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['mj_secret'];?>"></td>
		</tr>
		<tr>
			<td class="tdL">社区助手secret密钥</td>
			<td class="tdR"><input id="mj_assistant_secret" name="mj_assistant_secret" type="text" class="W300" maxlength="100" value="<?php echo $_LOGIN['mj_assistant_secret'];?>"></td>
			<td align="left" >&nbsp;</td>
			<td align="left"class="tdR">&nbsp;</td>
		</tr>
        
		</table>
    <input name="submitok" type="hidden" value="cache_login">
    <div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
	<!--手机短信运营商设置-->
	<?php }elseif($t == 4){
		if(!in_array('var_smsemail',$QXARR))exit(noauth());
		$sms_onoff = json_decode($_SMS['sms_onoff'],true);
		$sms_ali   = json_decode($_SMS['sms_ali'],true);
	 ?>		
		<table class="table size1 cols2" style="width:1111px;margin:0 0 0 20px">
        <tr><th colspan="4" align="left" style="border:0">手机短信</th></tr>
		<tr>
			<td class="tdL">互换联系方式</td>
			<td class="tdR"><input type="checkbox" class="switch" name="huhuan" id="huhuan" value="1"<?php echo ($sms_onoff['huhuan'] == 1)?' checked':'';?>><label for="huhuan" class="switch-label" ><i></i><b>开启</b><b>关闭</b></label></td>
			<td align="left" class="tdL">最多次数</td>
			<td align="left"class="tdR"><input id="sms_yzmnum" name="sms_yzmnum" type="text" class="W50" maxlength="3" value="<?php echo $_SMS['sms_yzmnum'];?>">
            <span class="tips">手机邮箱验证码最多获取次数，设为0不限次数</span></td>
		</tr>
		<tr>
			<td class="tdL">线上用户委托牵线</td>
		  <td class="tdR"><input type="checkbox" class="switch" name="CrmQxHn" id="CrmQxHn" value="1"<?php echo ($sms_onoff['CrmQxHn'] == 1)?' checked':'';?>><label for="CrmQxHn" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></td>
		  <td align="left" class="tdL">短信测试</td>
			<td align="left"class="tdR">
            <input id="testmob" name="testmob" type="text" class="W150" maxlength="11" value="<?php echo $_ZEAI['kf_mob'];?>">
            <button type="button" class="btn size1" id="smstest">测试短信</button>
            <script>
			smstest.onclick=function(){
				zeai.ajax({url:'var'+zeai.ajxext+'submitok=ajax_smstest',data:{testmob:testmob.value}},function(e){var rs=zeai.jsoneval(e);
					zeai.msg(0);zeai.msg(rs.msg);
				});
			}
            </script>
            </td>
		</tr>

		<tr>
			<th colspan="2" align="center" class="S14">
            <input type="radio" name="sms_company" id="sms_company1" class="radioskin" value="rcscloud"<?php echo ($_SMS['sms_company'] == 'rcscloud')?' checked':'';?>><label for="sms_company1" class="radioskin-label"><i class="i1"></i><b class="W200 ">美圣融云（推荐）</b></label>
            
				<div id="sms" class="helpC S14" >

登录<a href="http://www.rcscloud.cn/hy/hy_zh/login" target="_blank" class="blue">美圣融云短信运营商平台</a>，如果没有帐号，先注册一个。<br>
--------------------------------------------------------------------------------------------------------<br>
１．进入后，点击左侧菜单　短信充值>【短信充值】，套餐１（50元），先充1000条，去支付。<br>
２．顶部第二个菜单【资质】进入上传认证。<br>
３．点击左侧菜单　短信设置>【帐号/签名】，选中（打勾）当前【美圣融云】签名>点上面的第三个黄色按钮【✎编辑】，把“美圣融云”改成你自己的比如择爱网，报备IP就是你服务器的IP，其它默认。<br>
４．资质认证成功和短信充值好了以后，点击左侧菜单　短信设置>【短信模版】>然后点上面的第一个蓝色按钮【＋新建】三个短信模版。<br>
　　-------------------模版1-----------------<br>
　　模板名称：金媒系统_验证码<br>
　　模版内容：您的验证码为：@1@，请尽快验证!<br>
　　产品帐号：默认已选中了你改过的签名了，不要动<br>
　　模版类型：验证码<br>
　　其它默认<br>
　　-------------------模版2-------------------<br>
　　模板名称：金媒系统_线上牵线<br>
　　模版内容：用户UID：@1@，想委托您为Ta牵线服务，请到CRM工作台->左侧菜单->线上牵线 进行牵线服务<br>
　　产品帐号：默认已选中了你改过的签名了，不要动<br>
　　模版类型：验证码<br>
　　其它默认<br>
　　-------------------模版3-------------------<br>
　　模板名称：金媒系统_互换联系方式<br>
　　模版内容：用户UID：@1@，想与你互换联系方式，点击同意或拒绝 <?php echo HOST;?>/m/my_huhuan.php?id=@2@<br>
　　产品帐号：默认已选中了你改过的签名了，不要动<br>
　　模版类型：验证码<br>
　　其它默认<br>
５．点击左侧菜单　短信设置>【帐号/签名】和【短信模版】即可查看到 短信帐号、APIKEY、模版编号
<br><br><br>
				</div>
				
			　</th>
			<th colspan="2" align="center"><input type="radio" name="sms_company" id="sms_company2" class="radioskin" value="ali"<?php echo ($_SMS['sms_company'] == 'ali')?' checked':'';?>><label for="sms_company2" class="radioskin-label"><i class="i1"></i><b class="W200 ">阿里云</b></label></th>
		  </tr>
		<tr>
			<td class="tdL">短信产品帐号</td>
			<td class="tdR"><input id="sms_sid" name="sms_sid" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['sms_sid'];?>"><img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:sms,title:'手机短信运营商设置帮助',w:800,h:500});"></td>
		  <td align="left" class="tdL">AccessKey ID</td>
			<td align="left"class="tdR"><input id="ali_AccessKeyID" name="ali_AccessKeyID" type="text" class="W300" maxlength="100" value="<?php echo $sms_ali['AccessKeyID'];?>"></td>
		</tr>
		<tr>
			<td class="tdL">短信产品帐号apikey</td>
			<td class="tdR"><input id="sms_apikey" name="sms_apikey" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['sms_apikey'];?>"></td>
			<td align="left" class="tdL">AccessKey Secret</td>
			<td align="left"class="tdR"><input id="ali_AccessKeySecret" name="ali_AccessKeySecret" type="text" class="W300" maxlength="100" value="<?php echo $sms_ali['AccessKeySecret'];?>"></td>
		</tr>
		<tr>
			<td class="tdL"><b>验证码</b>-模板编号</td>
			<td class="tdR"><input id="sms_tplid_authcode" name="sms_tplid_authcode" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['sms_tplid_authcode'];?>"></td>
			<td align="left" class="tdL">签名名称</td>
			<td align="left"class="tdR"><input id="ali_SignName" name="ali_SignName" type="text" class="W300" maxlength="100" value="<?php echo $sms_ali['SignName'];?>"></td>
		</tr>
		<tr>
			<td class="tdL"><b>线上牵线</b>-模板编号</td>
			<td class="tdR"><input id="sms_tplid_CrmQxHn" name="sms_tplid_CrmQxHn" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['sms_tplid_CrmQxHn'];?>"></td>
			<td align="left" class="tdL"><b>验证码</b>-模板编号</td>
			<td align="left"class="tdR"><input id="ali_tplid_authcode" name="ali_tplid_authcode" type="text" class="W300" maxlength="100" value="<?php echo $sms_ali['tplid_authcode'];?>"></td>
		</tr>
		<tr>
			<td class="tdL"><b>互换联系方式</b>-模板编号</td>
			<td class="tdR"><input id="sms_tplid_hh" name="sms_tplid_hh" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['sms_tplid_hh'];?>"></td>
			<td align="left" class="tdL">&nbsp;</td>
			<td align="left"class="tdR"></td>
		</tr>

        
		<tr style="display:none"><th colspan="4" align="left" style="border:0">　</th></tr>
        
		<tr style="display:none">
        	<th colspan="4" align="left" style="border:0">邮箱参数<span class="tips">　(请咨询邮箱提供商是否开通不限量网站发邮件功能，推荐使用<font class="C00f">收费企业邮局或QQ邮箱</font>,QQ邮箱需开启smtp并获取授权码)。注：阿里云已屏蔽25端口，必须使用465</span></td>
			<td class="tdL">发件人邮箱地址</td>
			<td class="tdR"><input id="email_email" name="email_email" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['email_email'];?>"></td>
			<td align="left" class="tdL">端口</td>
			<td align="left"class="tdR"><input id="email_port" name="email_port" type="text" class="W300" maxlength="10" value="<?php echo $_SMS['email_port'];?>">
			  <div class="tips2">QQ邮箱为465</div></td>
		</tr>
		<tr style="display:none">
			<td class="tdL">SMTP地址</td>
			<td class="tdR"><input id="email_smtp" name="email_smtp" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['email_smtp'];?>">
		    <div class="tips2">QQ邮箱前面要加ssl://</div></td>
			<td align="left" class="tdL">SMTP授权码/邮箱密码</td>
			<td align="left"class="tdR"><input id="email_pwd" name="email_pwd" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['email_pwd'];?>"></td>
		</tr>
		<tr style="display:none">
			<td class="tdL">SMTP服务器用户名</td>
			<td class="tdR"><input id="email_uid" name="email_uid" type="text" class="W300" maxlength="100" value="<?php echo $_SMS['email_uid'];?>">
			<div class="tips2">QQ邮箱只需@前面部分</div></td>
			<td align="left" class="tdL">是否开启debug调试</td>
			<td align="left"class="tdR"><input id="email_debug" name="email_debug" type="text" class="W50" maxlength="1" value="<?php echo $_SMS['email_debug'];?>">
			<div class="tips2">默认0，2为开启，正式使用请填0</div></td>
		</tr>
        
		</table>
        <input name="submitok" type="hidden" value="cache_sms">
        <div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
	<!--在线支付账户设置-->
	<?php }elseif($t == 5){ 
	if(!in_array('var_payset',$QXARR))exit(noauth());
	?>		
		<table class="table size1 cols2" style="width:1111px;margin:0 0 0 20px">
		<tr>
			<th colspan="4" align="left" style="border:0"><img src="../res/wxpayico.png" width="20" style="vertical-align:middle"> <font style="vertical-align:middle">微信支付设置</font>
<div id="wxpay" class="helpC S14">
１． 登录 <a href="https://pay.weixin.qq.com" target="_blank" class="blue">公众号（服务号）</a>，点击左侧菜单【微信支付】，然后申请，申请成功后会自动发送支付商号MCHID给您<br>　　<font class="Cf00">注意：</font>首次登录商户平台设置操作会跳转到设置操作密码步骤，这个很重要，相当于登录密码，记下来不要忘记，以后每操作一步都会让你验证这个操作密码<br><br>
２． 扫码登录<a href="https://pay.weixin.qq.com" target="_blank" class="blue"> 微信支付商户平台 </a>后，点击顶部菜单【账户中心】>再点左侧菜单【API安全】>[设置密钥]和[下载证书]，下载证书（apiclient_cert.pem、apiclient_key.pem、apiclient_cert.p12）放到总后台cert目录下面，然后把支付商号MCHID、密钥填到后台<br><br>
３． 产品中心 > 我的产品>添加>[企业付到零钱] 模块，并开通。如果没有请把https://pay.weixin.qq.com/index.php/public/product/detail?pid=5 这个网址复制到刚才支付的那个浏览器地址栏里面，打开一下就有了<br><br>
４． 产品中心 > 我的产品>添加>[H5支付]模块，并开通<br><br>
５． 产品中心 >开发配置，添加><br>　　公众号支付授权目录： <font class="blue"><?php echo HOST;?>/api/weixin/pay/</font>和<font class="blue"><?php echo HOST;?>/</font><br>　　H5支付域名 <font class="blue"><?php echo $_SERVER['HTTP_HOST'];?></font><br><br><br>
</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:wxpay,title:'微信支付设置',w:600,h:500});" style="vertical-align:middle">
			　<font class="tips FR"><a href="https://pay.weixin.qq.com" target="_blank" class="aQING"> 微信支付商户平台</a></font>
		</th>
		</tr>
		<tr>
			<td class="tdL">微信支付商户号MCHID</td>
			<td class="tdR"><input id="wxpay_mchid" name="wxpay_mchid" type="text" class="W300" maxlength="100" value="<?php echo $_PAY['wxpay_mchid'];?>"> <span class="tips"><img src="images/!.png" width="14" height="14" valign="middle"> <font style="vertical-align:middle;color:#999">留空将自动隐藏微信支付</font></span></td>
			<td align="left" class="tdL">微信支付商户密钥KEY</td>
			<td align="left"class="tdR"><input id="wxpay_key" name="wxpay_key" type="text" class="W300" maxlength="100" value="<?php echo $_PAY['wxpay_key'];?>"></td>
		</tr>
         <tr><th colspan="4" align="left" style="border:0">&nbsp;</th></tr>
		<tr>
			<th colspan="4" align="left" style="border:0"><img src="../res/alipayico.png" width="20" style="vertical-align:middle"> <font style="vertical-align:middle">支付宝设置</font>
<div id="alipay" class="helpC S14">
首先登录 <a href="http://www.alipay.com" target="_blank" class="blue">支付宝商户平台</a>，选【我是商家用户】 > [我是支付宝商家] > 【电脑网站支付】和【手机网站支付】，如果没有帐号，先注册一个。<br>
------------------------------------------------------------------------------<br>
１．下载<a href="http://p.tb.cn/rmsportal_6680_secret_key_tools_RSA_win.zip?spm=a219a.7629140.0.0.FlpLkO&file=rmsportal_6680_secret_key_tools_RSA_win.zip" class="blue">一键生成RSA密钥工具</a>，下载后点击“RSA签名验签工具.bat” > PKCSI1(非JAVA适用) > 密钥长度2048 > 生成密钥，复制【商户应用私钥】内容填到后台【商户私钥】，生成密钥工具窗口不要关闭，第3步要用<br><br>
２．给您的应用 设置私钥和公钥 <a href="https://openhome.alipay.com/platform/keyManage.htm" target="_blank" class="blue">进入支付宝开放平台设置界面</a><br>　　设置回调地址<?php echo HOST.'/api/ali/pay/notify_url.php';?><br><br>
３．复制刚才下载的生成工具【商户应用公钥】内容填到支付宝开放平台的您的应用中，就可以获得【支付宝公钥】，获取后复制填到后台【支付宝公钥】<br><br>
４.也可以进入开放平台后，点击顶部【开发者中心】->网页&移动应用->创建应用->支付接入->上传你的LOGO，审核成功后，点应用信息设置公钥和回调地址，其它默认</div>
				<img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:alipay,title:'支付宝设置',w:600,h:400});">
			　<font class="tips FR">注册/申请支付宝平台帐号：<a href="https://www.alipay.com" target="_blank" class="aQING">支付宝商户平台</a></font>
		</th>
		</tr>

		<tr>
			<td class="tdL">应用APPID</td>
			<td colspan="3" class="tdR"><input id="alipay_appid" name="alipay_appid" type="text" class="W300" maxlength="100" value="<?php echo $_PAY['alipay_appid'];?>"> <span class="tips"><img src="images/!.png" width="14" height="14" valign="middle"> <font style="vertical-align:middle;color:#999">留空将自动隐藏支付宝支付</font></span></td>
		  </tr>
		<tr>
			<td class="tdL">商户私钥</td>
			<td colspan="3" class="tdR"><textarea name="alipay_key1" rows="13" class="W98_" id="alipay_key1"><?php echo $_PAY['alipay_key1'];?></textarea></td>
		  </tr>
		<tr>
			<td class="tdL">支付宝公钥</td>
			<td colspan="3" class="tdR"><textarea name="alipay_key2" rows="4" class="W98_" id="alipay_key2"><?php echo $_PAY['alipay_key2'];?></textarea></td>
		  </tr>
		<tr><th colspan="4" align="left" style="border:0">&nbsp;</th></tr>
		<tr><th colspan="4" align="left" style="border:0">在线支付记录安全日志</th></tr>
		<tr>
			<td class="tdL">安全后辍变量</td>
			<td colspan="3" class="tdR"><input id="logname" name="logname" type="text" class="W100" maxlength="20" value="<?php echo $_PAY['logname'];?>"><span class="tips">日志文件名后辍，安全防盗，如：填_zeai，实际名称将是<?php echo date('Ymd');?>_zeai.txt，此支付日志在您的服务器站点<?php echo DIRECTORY_SEPARATOR.'up'.DIRECTORY_SEPARATOR.'p'.DIRECTORY_SEPARATOR.'paylog'.DIRECTORY_SEPARATOR;?>目录下面，可以下载后进行删除</span></td>
		  </tr>
		</table>
        <input name="submitok" type="hidden" value="cache_pay">
<br><br><br><br><br>
<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>

	<!--首页轮翻广告-->
	<?php }elseif($t == 6){
		if(!in_array('adv',$QXARR))exit(noauth());
		?>		

		<table class="table size1 cols2" style="width:1111px;margin:0 0 0 20px">
		<tr><th colspan="2" align="left">手机端首页轮翻广告（尺寸:<font class="Cf00">1000*463</font>像素，类型：.jpg，品质65左右为宜）</th></tr>

          <tr>
            <td align="right" bgcolor="#f8f8f8">手机轮翻广告①</td>
            <td align="left" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
                <tr>
                <td width="320">
					<?php if (!empty($_INDEX['mBN_path1_s'])) {?>
                        <img width="250" height="116" src="<?php echo $_ZEAI['up2']."/".$_INDEX['mBN_path1_s']; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".getpath_smb($_INDEX['mBN_path1_s'],'b'); ?>')">　<a href="###" onClick="bannerDel(1)" class="btn size1" >删除</a>　
                    <?php }else{ 
						echo "<input name=pic1 type=file size=30 class='input size2' />";
                    }?>
                </td>
                <td>
                	链接① <input name="path1_url" type="text" class="input size2" id="path1_url" value="<?php echo stripslashes($_INDEX['mBN_path1_url']);?>"size="50" maxlength="100">
                </td>
                </tr>
                </table>
            </td>
        </tr>


    <tr>
        <td align="right" bgcolor="#f8f8f8">手机轮翻广告②</td>
        <td align="left" valign="top">
        
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
        <tr>
        <td width="320"><?php if (!empty($_INDEX['mBN_path2_s'])) {?>
        <img width="250" height="116" src="<?php echo $_ZEAI['up2']."/".$_INDEX['mBN_path2_s']; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".getpath_smb($_INDEX['mBN_path2_s'],'b'); ?>')">　<a href="###"  onClick="bannerDel(2)" class="btn size1">删除</a>　
        <?php }else{ 
        echo "<input name=pic2 type=file size=30 class='input size2' />";
        }?></td>
        <td>链接②
        <input name="path2_url" type="text" class="input size2" id="path2_url" value="<?php echo stripslashes($_INDEX['mBN_path2_url']);?>"size="50" maxlength="100"></td>
        </tr>
        </table>
        </td>
    </tr>
          
          
    <tr>
        <td align="right" bgcolor="#f8f8f8">手机轮翻广告③</td>
        <td align="left" valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
        <tr>
        <td width="320"><?php if (!empty($_INDEX['mBN_path3_s'])) {?>
        <img width="250" height="116" src="<?php echo $_ZEAI['up2']."/".$_INDEX['mBN_path3_s']; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".getpath_smb($_INDEX['mBN_path3_s'],'b'); ?>')">　<a href="###"  onClick="bannerDel(3)" class="btn size1">删除</a>　
        <?php }else{ 
        echo "<input name=pic3 type=file size=30 class='input size2' />";
        }?></td>
        <td>链接③
        <input name="path3_url" type="text" class="input size2" id="path3_url" value="<?php echo stripslashes($_INDEX['mBN_path3_url']);?>"size="50" maxlength="100"></td>
        </tr>
        </table>
        </td>
    </tr>
    <tr><th colspan="2" align="left">电脑端首页轮翻广告（尺寸:<font class="Cf00">1903*442</font>像素，类型：.jpg，品质65左右为宜）</th></tr>


          <tr>
            <td align="right" bgcolor="#f8f8f8">电脑轮翻广告①</td>
            <td align="left" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
                <tr>
                <td width="320">
					<?php if (!empty($_INDEX['pcBN_path1_s'])) {?>
                        <img width="250" height="58" src="<?php echo $_ZEAI['up2']."/".$_INDEX['pcBN_path1_s']; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".getpath_smb($_INDEX['pcBN_path1_s'],'b'); ?>')">　<a href="###" onClick="bannerDel(4)" class="btn size1" >删除</a>　
                    <?php }else{ 
						echo "<input name=pic4 type=file size=30 class='input size2' />";
                    }?>
                </td>
                <td>
                	链接① <input name="path4_url" type="text" class="input size2" id="path4_url" value="<?php echo stripslashes($_INDEX['pcBN_path1_url']);?>"size="50" maxlength="100">
                </td>
                </tr>
                </table>
            </td>
        </tr>


          <tr>
            <td align="right" bgcolor="#f8f8f8">电脑轮翻广告②</td>
            <td align="left" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
                <tr>
                <td width="320">
					<?php if (!empty($_INDEX['pcBN_path2_s'])) {?>
                        <img width="250" height="58" src="<?php echo $_ZEAI['up2']."/".$_INDEX['pcBN_path2_s']; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".getpath_smb($_INDEX['pcBN_path2_s'],'b'); ?>')">　<a href="###" onClick="bannerDel(5)" class="btn size1" >删除</a>　
                    <?php }else{ 
						echo "<input name=pic5 type=file size=30 class='input size2' />";
                    }?>
                </td>
                <td>
                	链接② <input name="path5_url" type="text" class="input size2" id="path5_url" value="<?php echo stripslashes($_INDEX['pcBN_path2_url']);?>"size="50" maxlength="100">
                </td>
                </tr>
                </table>
            </td>
        </tr>


          <tr>
            <td align="right" bgcolor="#f8f8f8">电脑轮翻广告③</td>
            <td align="left" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
                <tr>
                <td width="320">
					<?php if (!empty($_INDEX['pcBN_path3_s'])) {?>
                        <img width="250" height="58" src="<?php echo $_ZEAI['up2']."/".$_INDEX['pcBN_path3_s']; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".getpath_smb($_INDEX['pcBN_path3_s'],'b'); ?>')">　<a href="###" onClick="bannerDel(6)" class="btn size1" >删除</a>　
                    <?php }else{ 
						echo "<input name=pic6 type=file size=30 class='input size2' />";
                    }?>
                </td>
                <td>
                	链接③ <input name="path6_url" type="text" class="input size2" id="path6_url" value="<?php echo stripslashes($_INDEX['pcBN_path3_url']);?>"size="50" maxlength="100">
                </td>
                </tr>
                </table>
            </td>
        </tr>
        <!--植入广告-->
		<tr><th colspan="2" align="left">手机端瀑布流植入广告（尺寸:<font class="Cf00">300*375</font>像素，类型：.jpg，品质65左右为宜，<font class="Cf00">删除图片将不显示</font>）</th></tr>
        <?php
        $zeai_pplAD = json_decode($_INDEX['zeai_pplAD'],true);
        $zeai_pplAD_num=count($zeai_pplAD);
        for($i=1;$i<=$zeai_pplAD_num;$i++) {
            switch ($i) {
                case 1:$ii  = '①';break;
                case 2:$ii  = '②';break;
                case 3:$ii  = '③';break;
                case 4:$ii  = '④';break;
                case 5:$ii  = '⑤';break;
                case 6:$ii  = '⑥';break;
                case 7:$ii  = '⑦';break;
                case 8:$ii  = '⑧';break;
            }
            $AD=Zeai_pplAD($i,'i');
            if(!empty($AD)){
                $img=$AD['img'];$url=$AD['url'];$p=intval($AD['p']);
            }else{
                $img='';$url='';
            }?>
          <tr>
            <td align="right" bgcolor="#f8f8f8">瀑布流广告<?php echo $ii;?></td>
            <td align="left" valign="top">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table0">
                <tr>
                <td width="200">
                    <?php if (!empty($img)) {?>
                        <img width="100" height="125" src="<?php echo $_ZEAI['up2']."/".$img; ?>" class="zoom" align="absmiddle" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".$img; ?>')">　<a onClick="pplimgDel(<?php echo $i;?>)" class="btn size1 hand" >删除</a>　
                    <?php }else{ 
                        echo "<input name=pplpic".$i." type=file size=30 class='input size2' />";
                    }?>
                </td>
                <td style="padding-left:20px">链接网址<?php echo $ii;?> <input name="pplurl<?php echo $i;?>" type="text" class="input size2 W80_" value="<?php echo urldecode($url);?>" maxlength="300"><br><br>
                插入位置<?php echo $ii;?> <input name="pplp<?php echo $i;?>" type="text" class="input size2" value="<?php echo $p;?>" size="5" maxlength="5"> <span class="tips">就是首页排名名次位置，比如填：3，就显示到第三个，插入位置请不要相同</span>
                </td>
                </tr>
                </table>
            </td>
        </tr>
    <?php }?>

    </table>
<input name="submitok" type="hidden" value="cache_banner">
<br><br><br><br><div class="savebtnbox"><button type="button" id="save" class="btn size3">确定并保存</button></div>
    
    
<!--导航/模块设置-->
	<?php }elseif($t == 'nav'){
		if(!in_array('nav',$QXARR))exit(noauth());
		$nav = json_decode($_ZEAI['nav'],true);
	?>
	<script src="js/Sortable1.6.1.js"></script>
    <style>
    .inav{clear:both;overflow:auto;text-align:center}
    .inav li{width:118px;float:left;margin:20px 0;display:block}
    .inav li a{width:60px;height:60px;line-height:60px;border-radius:30px;font-size:34px;display:block;margin:5px auto;color:#fff}
    .inav li span{display:inline-block;font-size:14px}
    .inav li em{height:30px;}
    .inav li a.dating{background-color:#FD45A7}
    .inav li a.trend{background-color:#FE7BC1}
    .inav li a.party{background-color:#D86EA3}
    .inav li a.video{background-color:#D861B9}
    .inav li a.hn{background-color:#FF5065}
    .inav li a.article{background-color:#28C7C8;}
    .inav li a.group{background-color:#A884E9}
    .inav li a.hb{background-color:#FF8357}
    .inav li a.gift{background-color:#FD9F23}
    .inav li a.xqcard{background-color:#F7564D}
    .inav li a.tg{background-color:#1478F0}
    .inav li a.hi{background-color:#FD66B5}
    .inav li a.robot{background-color:#01296E}
	.inav li a.chat{background-color:#31C93C}
	.inav li a.contact{background-color:#51B7EC}
	.inav li a.contact_hh{background-color:#87b7ee}
	.inav li a.store{background-color:#FFA370}
	.inav li a.huxuan{background-color:#5ACC9A}
	.inav li a.ubbs{background-color:#F78775}
	.inav li a.qun{background-color:#D88CFF}
	.inav li a.lovetest{background-color:#ee8fbc}
	.inav li a.manghe{background-color:#ff7676}
	.inav li a.sign{background-color:#7b73e4}
    .inav li.off span{color:#999}
    .inav li.off a{background-color:#ccc}
	.tips{font-size:12px;}
	.navkind{border-bottom:#eee 1px solid;padding:0 0 10px 10px;text-align:center}
	.navdiy{clear:both;overflow:auto;text-align:left;padding:10px 0}
	.navdiy .stepbox{margin-bottom:10px}
	.navdiy .stepbox .stepli{margin-top:5px}
	.navdiy .stepbox .stepli li{text-align:center;width:90px;padding:14px 10px 10px 10px;float:left;margin:8px 5px 8px 12px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:13px}
	.navdiy .stepbox .stepli li p{width:60px;height:60px;line-height:60px;border-radius:30px;display:inline-block;background-color:#f29999;overflow:hidden}
	.navdiy .stepbox .stepli li p:hover{background-color:#FF6F6F;cursor:pointer}
	.navdiy .stepbox .stepli li.off p:hover{background-color:#f29999}
	.navdiy .stepbox .stepli li p img{width:60px;height:60px;object-fit:cover;-webkit-object-fit:cover}
	.navdiy .stepbox .stepli li span{width:100%;display:block;font-size:14px;margin:0 0 5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
	.navdiy .stepbox .stepli li em{height:30px;}
	.navdiy .stepbox .stepli li.off p{background-color:#ccc}
	.navdiy .stepbox .stepli li.off p img{-webkit-filter:grayscale(100%);-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%)}
	.navdiy .stepbox .stepli li.off span{color:#999}
    </style>  
	<table class="table size2" style="min-width:1111px;margin:0 0 0 20px">
    <tr><th colspan="2" align="left" style="border:0">前台导航模块</th></tr>
	<tr><td colspan="2" align="center" class="S14">
    <div class="navkind">
        <input type="radio" name="navkind" id="navkind1" class="radioskin" value="1"<?php echo ($_ZEAI['navkind'] == 1)?' checked':'';?>><label for="navkind1" class="radioskin-label"><i></i><b class="W200">官方默认导航</b></label>
        <input type="radio" name="navkind" id="navkind2" class="radioskin" value="2"<?php echo ($_ZEAI['navkind'] == 2)?' checked':'';?>><label for="navkind2" class="radioskin-label"><i></i><b class="W200">自定义导航</b></label>
        <div>
			<span class="tips">【官方默认导航】是全站总开关，如果需要自定义要先在【官方默认导航】里操作总功能开闭后，再点【自定义导航】才会生效</span>
        </div>
   </div> 
    <!--官方默认导航-->
    <div class="inav" id="navdefault"<?php echo ($_ZEAI['navkind'] != 1)?' style="display:none"':'';?>>
        <li<?php echo (@!in_array('dating',$nav))?' class="off"':'';?>>
        	<a href="dating.php" class="ico dating" title="点击进入管理">&#xe653;</a><span>约会</span>
            <em><input type="checkbox" name="nav[]" id="dating" class="switch" value="dating"<?php echo (@in_array('dating',$nav))?' checked':'';?>><label for="dating" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('video',$nav))?' class="off"':'';?>>
        	<a href="video.php" class="ico video" title="点击进入管理">&#xe68a;</a><span>视频</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="video" value="video"<?php echo (@in_array('video',$nav))?' checked':'';?>><label for="video" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('hb',$nav))?' class="off"':'';?> style="display:none">
        	<a class="ico hb">&#xe63a;</a><span>红包</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="hb" value="hb"<?php echo (@in_array('hb',$nav))?' checked':'';?>><label for="hb" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
         </li>
        <li<?php echo (@!in_array('trend',$nav))?' class="off"':'';?>>
        	<a href="trend.php" class="ico trend" title="点击进入管理">&#xe63b;</a><span>动态</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="trend" value="trend"<?php echo (@in_array('trend',$nav))?' checked':'';?>><label for="trend" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
		</li>
        <li<?php echo (@!in_array('hn',$nav))?' class="off"':'';?>>
        	<a href="crm_hn.php" class="ico hn" title="点击进入管理">&#xe613;</a><span>红娘服务</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="hn" value="hn"<?php echo (@in_array('hn',$nav))?' checked':'';?>><label for="hn" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
		</li>
        <li<?php echo (@!in_array('party',$nav))?' class="off"':'';?>>
        	<a href="party.php" class="ico party" title="点击进入管理">&#xe695;</a><span>相亲活动</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="party" value="party"<?php echo (@in_array('party',$nav))?' checked':'';?>><label for="party" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
		</li>
        <li<?php echo (@!in_array('article',$nav))?' class="off"':'';?>>
        	<a href="news.php" class="ico article" title="点击进入管理">&#xe654;</a><span>婚恋课堂</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="article" value="article"<?php echo (@in_array('article',$nav))?' checked':'';?>><label for="article" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
		</li>
        <li<?php echo (@!in_array('shop',$nav))?' class="off"':'';?>>
        	<a href="./?wwwzeaicn=shop" target="_parent" class="ico store" title="点击进入管理">&#xe71a;</a><span>商家</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="shop" value="shop"<?php echo (@in_array('shop',$nav))?' checked':'';?>><label for="shop" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('huxuan',$nav))?' class="off"':'';?>>
        	<a href="huxuan.php" class="ico huxuan" title="点击进入管理">&#xe6c6;</a><span>互选相亲</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="huxuan" value="huxuan"<?php echo (@in_array('huxuan',$nav))?' checked':'';?>><label for="huxuan" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('qun',$nav))?' class="off"':'';?>>
        	<a href="qun.php" class="ico qun" title="点击进入管理">&#xe647;</a><span>单身群</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="qun" value="qun"<?php echo (@in_array('qun',$nav))?' checked':'';?>><label for="qun" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('lovetest',$nav))?' class="off"':'';?>>
        	<a href="lovetest_bank.php" class="ico lovetest" title="点击进入管理">&#xe65a;</a><span>情感测试</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="lovetest" value="lovetest"<?php echo (@in_array('lovetest',$nav))?' checked':'';?>><label for="lovetest" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        
        <li<?php echo (@!in_array('manghe',$nav))?' class="off"':'';?>>
        	<a href="manghe.php" class="ico manghe" title="点击进入管理">&#xe667;</a><span>脱单盲盒</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="manghe" value="manghe"<?php echo (@in_array('manghe',$nav))?' checked':'';?>><label for="manghe" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
   
    </div>
    <!--自定义导航-->
    <div class="navdiy" id="navdiy"<?php echo ($_ZEAI['navkind'] != 2)?' style="display:none"':'';?>>
        <dd class="stepbox" id="stepbox">
            <div class="stepli">
                <?php
                $navdiyARR = json_decode($_ZEAI['navdiy'],true);
                if (count($navdiyARR) >= 1 && is_array($navdiyARR)){
                    foreach ($navdiyARR as $V) {
                        $i=$V['i'];$img=$V['img'];$f=intval($V['f']);
                        $img=(empty($img))?'images/navadd.png':$_ZEAI['up2'].'/'.$img;?>
                        <li<?php echo ($f==0)?' class="off"':'';?>>
                            <p title="点击进行设置" class="navdiyli" i="<?php echo $i;?>"><img src="<?php echo $img;?>" id="img<?php echo $i;?>"></p><span id="span<?php echo $i;?>"><?php echo dataIO($V['t'],'out');?></span>
                            <em><input type="checkbox" class="switch navdiy_f" i="<?php echo $i;?>" name="navdiy_f<?php echo $i;?>" id="navdiy_f<?php echo $i;?>" value="1"<?php echo ($f==1)?' checked':'';?>><label for="navdiy_f<?php echo $i;?>" class="switch-label"><i></i><b>开启</b><b>隐藏</b></label></em>
                        </li><?php
                    }
                }
                ?>
            </div>
            <div class="clear"></div>
        </dd>
        <img src="images/!.png" width="14" height="14" valign="middle" style="margin-left:20px"> <font class="picmiddle S12 C999">修改图片/名称/超链接，请点击图标修改；可以按住不放拖动项目调整前后顺序，开启显示，关闭不显示；图标请上传正方形png格式150x150像素为宜；注：商盟和互选只有手机端</font>
        <button class="btn size2 FR" type="button" onClick="zeai.div({obj:navdiy_help,title:'官网默认手机端功能链接（根据需要复制蓝色网址）',w:666,h:450});" style="margin-right:30px">查看内置链接</button>
    </div>
    <div id="navdiy_help" class="helpC S14">
        <span class="tips" style="font-family:Verdana, Geneva, sans-serif">
        	<font class="Cf00">注：图标、导航名称、导航链接三个同时不为空才会显示导航，以下只是手机端，电脑端请复制浏览器地址栏网址</font><br>
            【首页】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST; ?></font>　　导航变量：index<br>
            【盲盒】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('manghe'); ?></font>　　导航变量：manghe<br>
            【单身群】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('qun'); ?></font>　　导航变量：qun<br>
            【情感测试】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('lovetest'); ?></font>　　导航变量：lovetest<br>
            【互选】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('huxuan'); ?></font>　　导航变量：huxuan<br>
            【商家】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('shop'); ?></font>　　导航变量：无<br>
            【活动】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('party'); ?></font>　　导航变量：party<br>
            【约会】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('dating'); ?></font>　　导航变量：dating<br>
            【视频】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('video'); ?></font>　　导航变量：video<br>
            【红娘】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('hongniang'); ?></font>　　导航变量：hongniang<br>
            【婚恋学堂】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('article'); ?></font>　　导航变量：article<br>
            【动态】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('trend'); ?></font>　　导航变量：trend<br>
            【会员搜索/列表】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('user'); ?></font>　　导航变量：user<br>
            【消息】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('my_msg'); ?></font>　　导航变量：my_msg<br>
            【我的】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('my'); ?></font>　　导航变量：my<br>
            【红包】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo mHref('hongbao'); ?></font>　　导航变量：hongbao<br><br>
            
            【总注册入口（单身/推广/商家）】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/reg.php'; ?></font>　　导航变量：无<br>
            【单身注册】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/reg_diy.php'; ?></font>　　导航变量：无<br>
            【单身登录】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/login.php'; ?></font>　　导航变量：无<br><br>

            【推广分销-首页】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/tg_index.php'; ?></font>　　导航变量：无<br>
            【推广分销-我的】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/tg_my.php'; ?></font>　　导航变量：无<br>
            【推广分销-注册】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/tg_reg.php'; ?></font>　　导航变量：无<br>
            【推广分销-登录】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/tg_login.php'; ?></font>　　导航变量：无<br><br>

            【网站简介】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/about.php?t=us'; ?></font>　　导航变量：无<br>
            【联系我们】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/about.php?t=contact'; ?></font>　　导航变量：无<br>
            【本站公告】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/about.php?t=news'; ?></font>　　导航变量：无<br>
            【隐私条款】<img src="images/d2.gif"> 导航链接：<font class="blue"><?php echo HOST.'/m/about.php?t=clause'; ?></font>　　导航变量：无<br><br><br><br>
        </span>
    </div>
	</td>
	</tr>

    <!--前台互动模块-->
    <tr><th colspan="2" align="left" style="border:0">前台互动模块</th></tr>
    <tr><td class="tdL">模块列表</td>
    <td class="tdR">
    <div class="inav">
        <li<?php echo (@!in_array('gift',$nav))?' class="off"':'';?>>
        	<a href="gift.php" class="ico gift" title="点击进入管理">&#xe600;</a><span>礼物</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="gift" value="gift"<?php echo (@in_array('gift',$nav))?' checked':'';?>><label for="gift" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('xqcard',$nav))?' class="off"':'';?>>
        	<a class="ico xqcard" style="cursor:not-allowed">&#xe6b6;</a><span>相亲卡</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="xqcard" value="xqcard"<?php echo (@in_array('xqcard',$nav))?' checked':'';?>><label for="xqcard" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('tg',$nav))?' class="off"':'';?>>
        	<a href="./?wwwzeaicn=tg" target="_parent" class="ico tg" title="点击进入管理">&#xe61d;</a><span>推广分销</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="tg" value="tg"<?php echo (@in_array('tg',$nav))?' checked':'';?>><label for="tg" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('hi',$nav))?' class="off"':'';?>>
        	<a href="hi_set.php" class="ico hi" title="点击进入设置">&#xe6bd;</a><span>打招呼</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="hi" value="hi"<?php echo (@in_array('hi',$nav))?' checked':'';?>><label for="hi" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('chat',$nav))?' class="off"':'';?>>
        	<a href="chat_list.php" class="ico chat" title="点击进入查看">&#xe629;</a><span>私信/聊天</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="chat" value="chat"<?php echo (@in_array('chat',$nav))?' checked':'';?>><label for="chat" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('contact',$nav))?' class="off"':'';?>>
        	<a href="hh_list.php" class="ico contact" title="点击进入查看">&#xe607;</a><span>联系方式(查看)</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="contact" value="contact"<?php echo (@in_array('contact',$nav))?' checked':'';?>><label for="contact" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('contact_hh',$nav))?' class="off"':'';?>>
        	<a href="hh_list.php" class="ico contact_hh" title="点击进入查看">&#xe607;</a><span>联系方式(互换)</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="contact_hh" value="contact_hh"<?php echo (@in_array('contact_hh',$nav))?' checked':'';?>><label for="contact_hh" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('robot',$nav))?' class="off"':'';?>>
        	<a href="robot.php" class="ico robot" title="点击进入设置">&#xe696;</a><span>机器人</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="robot" value="robot"<?php echo (@in_array('robot',$nav))?' checked':'';?>><label for="robot" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        
        <li<?php echo (@!in_array('store',$nav))?' class="off"':'';?> style="display:none">
        	<a class="ico store">&#xe71a;</a><span>红娘圈</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="store" value="store"<?php echo (@in_array('store',$nav))?' checked':'';?>><label for="store" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('ubbs',$nav))?' class="off"':'';?>>
        	<a href="u_bbs.php" class="ico ubbs" title="点击进入查看">&#xe676;</a><span>评价此人</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="ubbs" value="ubbs"<?php echo (@in_array('ubbs',$nav))?' checked':'';?>><label for="ubbs" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
        <li<?php echo (@!in_array('sign',$nav))?' class="off"':'';?>>
        	<a href="sign.php" class="ico sign" title="点击进入管理">&#xe699;</a><span>承诺书签名</span>
        	<em><input type="checkbox" class="switch" name="nav[]" id="sign" value="sign"<?php echo (@in_array('sign',$nav))?' checked':'';?>><label for="sign" class="switch-label"><i></i><b>开启</b><b>关闭</b></label></em>
        </li>
   
    </div>
    </td>
    </tr>
    <script>
	zeai.listEach('.switch',function(obj){
		obj.onclick = function(){
			var p=obj.parentNode.parentNode;
			if(obj.checked){
				p.removeClass('off');
			}else{
				p.addClass('off');
			}
		}
	});
	navkind1.onclick=function(){navdiy.hide();navdefault.show();}
	navkind2.onclick=function(){navdiy.show();navdefault.hide();}
	function drag_init(){
		(function (){
			[].forEach.call(stepbox.getElementsByClassName('stepli'), function (el){
				Sortable.create(el,{group: 'zeai_navdiy',animation:150});
			});
	})();}
	drag_init();
	zeai.listEach('.navdiyli',function(obj){
		obj.onclick = function(){
			var id = parseInt(obj.getAttribute("i"));
			zeai.iframe('导航DIY设置','var'+zeai.ajxext+'submitok=navdiy&id='+id,600,450);
		}
	});
    </script>
    
    <!--首页会员展示模块-->
    <tr><th colspan="2" align="left" style="border:0">首页显示模块</th></tr>
    <tr><td class="tdL">手机端首页</td>
      <td class="tdR" style="padding:10px">
            <input type="radio" name="iModuleU" id="iModuleU1" class="radioskin" value="1"<?php echo ($_INDEX['iModuleU'] == 1)?' checked':'';?>><label for="iModuleU1" class="radioskin-label" style="margin-bottom:10px"><i class="i1"></i><b class="W500">
            <span class="btn size2 BAI">推荐<font class="C999">（智能适配，男显女，女显男，游客全部）</font></span>　<span class="btn size2 BAI">附近</span>　<span class="btn size2 BAI">匹配</span>
            </b></label><br>
            
            <input type="radio" name="iModuleU" id="iModuleU2" class="radioskin" value="2"<?php echo ($_INDEX['iModuleU'] == 2)?' checked':'';?>><label for="iModuleU2" class="radioskin-label" style="margin-bottom:10px"><i class="i1"></i><b class="W500">
            <span class="btn size2 BAI">推荐<font class="C999">（男女一起显示）</font></span>　<span class="btn size2 BAI">男生</span>　<span class="btn size2 BAI">女生</span>　<span class="btn size2 BAI">匹配</span>
            </b></label><br>
            
            用户展示数量： <input name="iModuleU_num" id="iModuleU_num" type="text" class="W50 FVerdana" maxlength="2" value="<?php echo $_INDEX['iModuleU_num'];?>"> <span class="tips">推荐6名，请填偶数，越少首页打开速度越快，不要超过20，经典首页风格有效</span><br>

            <div>
             滚动播报：<input type="checkbox" name="iMarquee" id="iMarquee" class="switch" value="1"<?php echo ($_INDEX['iMarquee'] == 1)?' checked':'';?>><label for="iMarquee" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> <span class="tips">开启后，在首页中部会出现滚动播报【用户动态+新用户注册+VIP升级充值混合随机展现】，关闭后不显示</span> 
            </div>
            <div>
             新手引导：<input type="checkbox" name="iXbn3" id="iXbn3" class="switch" value="1"<?php echo ($_INDEX['iXbn3'] == 1)?' checked':'';?>><label for="iXbn3" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> <span class="tips">开启后，在首页中间导航下方会出现【免费登记+实名相亲+最新加入】三个引导小模块入口，关闭后不显示，经典首页风格有效</span> 
            </div>
            <div>
             顶部广告：<input type="checkbox" name="iBanner" id="iBanner" class="switch" value="1"<?php echo ($_INDEX['iBanner'] == 1)?' checked':'';?>><label for="iBanner" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> <span class="tips">开启后，在首页顶部会显示【横幅广告】模块，关闭后不显示，经典首页风格有效　　<i class="ico">&#xe62d;</i>　</span><a href="var.php?t=6" class="btn size1">广告发布管理</a>
            </div>
            <div>
             置顶推荐：<input type="checkbox" name="iTop" id="iTop" class="switch" value="1"<?php echo ($_INDEX['iTop'] == 1)?' checked':'';?>><label for="iTop" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> <span class="tips">开启后，在首页中部会启用【置顶推荐】模块，关闭后不显示　　<i class="ico">&#xe62d;</i>　</span><a href="u_top.php" class="btn size1">设置付费置顶</a>
            </div>
            
            <div>
             用户专题：<input type="checkbox" name="iZT" id="iZT" class="switch" value="1"<?php echo ($_INDEX['iZT'] == 1)?' checked':'';?>><label for="iZT" class="switch-label"><i></i><b>开启</b><b>关闭</b></label> <span class="tips">开启后，在首页中部会启用【专题推荐】模块，关闭后不显示　　<i class="ico">&#xe62d;</i>　</span><a href="iZT.php" class="btn size1">设置专题页面</a>
            </div>
            
      </td>
    </tr>
    <tr><td class="tdL">电脑端首页</td>
      <td class="tdR" style="padding:10px">
      
            <input type="radio" name="iModuleU_pc" id="iModuleU_pc1" class="radioskin" value="1"<?php echo ($_INDEX['iModuleU_pc'] == 1)?' checked':'';?>><label for="iModuleU_pc1" class="radioskin-label" style="margin-bottom:10px"><i class="i1"></i><b class="W700">
            <span class="btn size2 BAI">今日之星<font class="C999">（智能适配，男显女，女显男，游客全部）</font></span>　<span class="btn size2 BAI">同城会员</span>　<span class="btn size2 BAI">配匹我的</span>　<span class="btn size2 BAI">VIP会员</span>　<span class="btn size2 BAI">线下会员</span>
            </b></label><br>
            
            <input type="radio" name="iModuleU_pc" id="iModuleU_pc2" class="radioskin" value="2"<?php echo ($_INDEX['iModuleU_pc'] == 2)?' checked':'';?>><label for="iModuleU_pc2" class="radioskin-label" style="margin-bottom:10px"><i class="i1"></i><b class="W500">
            <span class="btn size2 BAI">今日之星<font class="C999">（男女一起显示）</font></span>　<span class="btn size2 BAI">优质男会员</span>　<span class="btn size2 BAI">优质女会员</span>　<span class="btn size2 BAI">配匹我的</span>
            </b></label><br>
            
            显示会员数量 <input name="iModuleU_pc_num" id="iModuleU_pc_num" type="text" class="W50 FVerdana" maxlength="2" value="<?php echo $_INDEX['iModuleU_pc_num'];?>"> <span class="tips">推荐10名，请填偶数，越少首页打开速度越快，不要超过40</span>
      </td>
    </tr>
    <tr><th colspan="2" align="left" style="border:0">手机端【用户列表/筛选】</th></tr>
    <tr><td class="tdL">列表默认展示形式</td>
    <td class="tdR">
    	<style>.listcls{font-size:34px;width:50px;height:50px;line-height:50px;color:#fff;text-align:center;border-radius:10px;margin-left:5px}</style>
    
        <input type="radio" name="list_showtype" id="list_showtype1" class="radioskin" value="1"<?php echo ($_TJDIY['list_showtype'] == 1)?' checked':'';?>><label for="list_showtype1" class="radioskin-label"><i class="i1"></i><b class="W100"><span class="ico S18 zeaibg listcls">&#xe67a;</span><br>头像模式</b></label>
        <input type="radio" name="list_showtype" id="list_showtype2" class="radioskin" value="2"<?php echo ($_TJDIY['list_showtype'] == 2)?' checked':'';?>><label for="list_showtype2" class="radioskin-label"><i class="i1"></i><b class="W100"><span class="ico S18 zeaibg listcls">&#xe65e;</span><br>列表模式</b></label>
        <input type="radio" name="list_showtype" id="list_showtype3" class="radioskin" value="3"<?php echo ($_TJDIY['list_showtype'] == 3)?' checked':'';?>><label for="list_showtype3" class="radioskin-label"><i class="i1"></i><b class="W100"><span class="ico S18 zeaibg listcls">&#xe65f;</span><br>大图模式</b></label>

    </td></tr>
    
	<style>
    .Mnavbtmkind dl{padding:15px 0;margin:10px 0;text-align:center;border:#ddd 1px solid;background-color:#f8f8f8;border-radius:3px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}
    .Mnavbtmkind dl input{padding:0;margin:10px 0;background-color:#fff}
    .Mnavbtmkind dl dt{width:30%;float:left}
    .Mnavbtmkind dl dt img{border-radius:6px}
    .Mnavbtmkind dl dd{width:65%;float:left;text-align:left}
    </style>
    <!--底部导航菜单-->
    <tr><th colspan="2" align="left" style="border:0">手机端【底部导航菜单DIY】</th></tr>
    <tr>
    <td class="tdL">底部导航菜单</td>
    <td class="tdR">
        <input type="radio" name="Mnavbtmkind" id="navbtmkind1" class="radioskin" value="1"<?php echo ($_ZEAI['Mnavbtmkind'] == 1)?' checked':'';?>><label for="navbtmkind1" class="radioskin-label"><i></i><b class="W120 ">官方默认：【首页】【搜索】【红娘】【消息】【我的】</b></label><span class="tips">注：将默认调用官方优化图标</span><br>
        <input type="radio" name="Mnavbtmkind" id="navbtmkind2" class="radioskin" value="2"<?php echo ($_ZEAI['Mnavbtmkind'] == 2)?' checked':'';?>><label for="navbtmkind2" class="radioskin-label"><i></i><b class="W120 ">下方自定义</b></label>
        <button class="btn size2 FR" type="button" onClick="zeai.div({obj:navdiy_help,title:'官网默认手机端功能链接（根据需要复制）',w:666,h:450});">查看内置链接</button>
        <span class="tips">图标尺寸：100*100像素正方形，超过将自动缩略，图片类型为.jpg，.gif，.png，推荐透明png格式，导航名称不能超过4个字</span>
        <div class="Mnavbtmkind">
            <?php
            for($i=1;$i<=5;$i++){
                $title=urldecode(Mnavbtm_info($i,'title'));
                $url  =urldecode(Mnavbtm_info($i,'url'));
                $var  =urldecode(Mnavbtm_info($i,'var'));
                $path1  =Mnavbtm_info($i,'path1');
                $path2  =Mnavbtm_info($i,'path2');
                ?>
                <dl>
                	<dt>
                    <?php if (!empty($path1)) {?>
                        <a class="pic60"><img  src="<?php echo $_ZEAI['up2']."/".$path1; ?>" class="zoom" align="absmiddle" alt="点击放大显示" title="点击放大显示" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".$path1; ?>')"></a>
                        <a href="javascript:;" onClick="MnavbtmDel('<?php echo $i;?>_1')" class="btn size1" >删除</a><br><br>
                        <input name="path<?php echo $i;?>_1" type="hidden" value="<?php echo $path1;?>">
                    <?php }else{ 
                        echo "未选图标 <input name='pic".$i."_1' type='file' class='input size2 W200' accept='image/gif,image/jpeg,image/png' /><br>";
                    }?> 
                    <?php if (!empty($path2)) {?>
                        <a class="pic60"><img  src="<?php echo $_ZEAI['up2']."/".$path2; ?>" class="zoom" align="absmiddle" alt="点击放大显示" title="点击放大显示" onClick="parent.piczoom('<?php echo $_ZEAI['up2']."/".$path2; ?>')"></a>
                        <a href="javascript:;" onClick="MnavbtmDel('<?php echo $i;?>_2')" class="btn size1" >删除</a>
                        <input name="path<?php echo $i;?>_2" type="hidden" value="<?php echo $path2;?>">
                    <?php }else{ 
                        echo "选中图标 <input name='pic".$i."_2' type='file' class='input size2 W200' accept='image/gif,image/jpeg,image/png' />";
                    }?> 
                    </dt>
					<dd>
                        导航名称 <input name="title<?php echo $i;?>" type="text" id="title<?php echo $i;?>" maxlength="4" class="W100" value="<?php echo $title;?>" autoComplete="off">　
                        导航变量 <input name="var<?php echo $i;?>" type="text" id="var<?php echo $i;?>" maxlength="20" class="W100" value="<?php echo $var;?>" autoComplete="off"><span class="tips">可以根据此判断未选和已选图标变色</span><br>
                        导航链接 <input name="url<?php echo $i;?>" type="text" id="url<?php echo $i;?>" maxlength="200" class="W500" value="<?php echo $url;?>" autoComplete="off">
					</dd>
                    <div class="clear"></div>
                </dl>
                <?php
            }
            ?>
        </div>
    	
    </td></tr>
	<script>function tjdiy(id,title2){zeai.iframe('【'+decodeURIComponent(title2)+'】条件筛选','var.php?submitok=tjdiy&id='+id);}</script>
</table>
<input name="submitok" type="hidden" value="cache_nav">
<input name="navdiy_px" id="navdiy_px" type="hidden" value="">

<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
<script>
save.onclick = function(){
	var DATAPX=[];
	zeai.listEach('.navdiy_f',function(obj){
		DATAPX.push(obj.getAttribute("i"));
	});
	navdiy_px.value=DATAPX.join(",");
	zeai.confirm('确认要修改么？此修改将触发缓存机制同步更新，立即生效！',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			setTimeout(function(){location.reload(true);},1000);
		});
	});
}
</script>




<!--认证设置-->
<?php }elseif($t == 'rz'){if(!in_array('var_rz',$QXARR))exit(noauth());
		$rz_dataARR    = explode(',',$_ZEAI['rz_data']);
		$rz_data_pxARR = explode(',',$_ZEAI['rz_data_px']);
		function RZbg2($V){
			$bg1=rz_data_info($V,'color');$bg2=rz_data_info($V,'color2');
			return ' background-image:-webkit-linear-gradient(left,'.$bg1.','.$bg2.');';
		}
	?>
    <style>
	.table.cols1 .tdL{width:160px}
	.stepbox .stepli{margin-top:5px}
	.stepbox .stepli li{text-align:center;width:80px;padding:10px;float:left;margin:5px 10px;border:#ddd 1px solid;cursor:move;background-color:#f8f8f8;border-radius:13px}
	.stepbox li i.ico{margin:10px 0;width:60px;font-size:40px;height:60px;line-height:60px;color:#fff;display:inline-block;background-color:#ddd;border-radius:5px;position:relative}
	<?php foreach ($rz_data_pxARR as $V) {?>
	.stepbox li.ed i.<?php echo $V;?>{<?php echo RZbg2($V);?>}
	<?php }?>
    </style>
	<table class="table size2 cols1" style="width:1111px;margin:0 0 0 20px">
	<tr><th colspan="4" align="left" style="border:0">认证项目DIY</th></tr>
	<tr>
		<td class="tdL tdLbgHUI">认证项目</td>
		<td class="tdR">
            <dd class="stepbox" id="stepbox">
                <div class="stepli">
                    <?php
                    if (count($rz_data_pxARR) >= 1 && is_array($rz_data_pxARR)){
                        foreach ($rz_data_pxARR as $k=>$V) {?>
                            <li>
                            <i class="ico <?php echo $V;?>"><?php echo rz_data_info($V,'ico');?></i>
                            <input type="checkbox" name="rz_data[]" id="rz_data_<?php echo $V;?>" class="checkskin rz_data" value="<?php echo $V;?>"<?php echo (in_array($V,$rz_dataARR))?' checked':'';?>><label for="rz_data_<?php echo $V;?>" class="checkskin-label"><i class="i1"></i><b class="W80"><?php echo rz_data_info($V,'title');?></b></label>
                            </li>
                            <?php
                        }
                    }
                    ?>
                </div>
                <div class="clear"></div>
            </dd>
            <font class="S12 C999">可以按住不放拖动项目调整前后顺序，选中请打勾，选中将出现在认证页面并展示或点亮对应图标，否则不显示</font>
        </td>
	</tr>


    <tr><th colspan="4" align="left" style="border:0;height:20px"></th></tr>
	<tr>
		<th colspan="4" align="left" style="border:0">【实名认证】【真人认证】参数设置 <font class="S12 C999">如果上方认证项目没勾选则无需设置参数</font>
            <div id="rzhelp" class="helpC S14">
            登录<a href="https://my.tianyandata.cn" target="_blank" class="blue">天眼数据第三方平台</a>，如果没有帐号，先注册一个。<a href="https://my.tianyandata.cn/#/register" target="_blank" class="blue B">点击注册</a><br>
            --------------------------------------------------------------<br>
            1．注册成功登录进去，点击左侧菜单【用户中心】->【账户信息】可以看见 <font class="Cf00">appId</font>和<font class="Cf00">appSecurity</font>，把这两个复制填到金媒相亲后台<br><br>
            2．点击右上角顶部【平台首页】->然后再点顶部【产品服务】选择<font class="Cf00">【运营商三要素验证】</font>和<font class="Cf00">【人脸身份证比对】</font>这两个进行申请购买<br><br>
            3．点击右上角【我的数据】按钮进入可以看到剩余次数和余额
            <br><br><br>
            </div>
            <font class="tips FR"><a href="https://my.tianyandata.cn" target="_blank" class="aQING"> 注册/登录/充值帐号</a></font>
	</th>
	</tr>
	<tr>
		<td class="tdL tdLbgHUI">appId</td>
		<td class="tdR"><input id="rz_appId" name="rz_appId" type="text" class="W400" maxlength="32" value="<?php echo $_SMS['rz_appId'];?>"><img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:rzhelp,title:'天眼数据第三方平台设置帮助',w:600,h:500});"></td>
	</tr>
	<tr>
		<td class="tdL tdLbgHUI">appSecurity</td>
		<td class="tdR"><input id="rz_appSecurity" name="rz_appSecurity" type="text" class="W400" maxlength="32" value="<?php echo $_SMS['rz_appSecurity'];?>"><img src="images/wenhao.png" class="helpico" onClick="zeai.div({obj:rzhelp,title:'天眼数据第三方平台设置帮助',w:600,h:500});"></td>
	</tr>

	<tr>
		<td class="tdL tdLbgHUI">运营商【实名认证】</td>
		<td class="tdR lineH150">
        <input type="checkbox" class="switch" name="rz_mobile3" id="rz_mobile3" value="1"<?php echo ($_SMS['rz_mobile3'] == 1)?' checked':'';?>><label for="rz_mobile3" class="switch-label"><i></i><b>开启</b><b>关闭</b></label>
        <div class=" S12 C999" style="margin-top:10px">
        1．上方认证项目【实名认证】勾选后并开启此开关，会员实名认证会根据“手机号+姓名+身份证号”自动进入“电信/移动/联通”数据库验证是否是同一个人<br>
        2．验证一致将自动点亮【实名认证】图标，并将姓名和身份证号自动更新入库<br>
        3．<font class="Cf00">上方认证项目【实名认证】勾选后并关闭此开关，将采用传统上传身份证形式上传至后台，进行人工审核</font>
        </div>
        </td>
	</tr>
	<tr>
		<td class="tdL ">人脸识别【真人认证】</td>
		<td class="tdR lineH150">
        <div class=" S12 C999">
        1．上方认证项目勾选后，用户认证会根据“上传的照片+姓名+身份证号”和公安库里面照片进行比对<br>
        2．验证一致将自动点亮对应【真人认证】图标，并将姓名和身份证号自动更新入库<br>
        </div>
        </td>
	</tr>
	<tr>
		<td class="tdL tdLbgHUI">用户认证费用</td>
		<td class="tdR lineH150">
              实名认证 <input name="rz_price_identity" id="rz_price_identity" type="text" class="W80 FVerdana" maxlength="6" value="<?php echo floatval($_SMS['rz_price_identity']);?>"> 元　　
              真人认证 <input name="rz_price_photo" id="rz_price_photo" type="text" class="W80 FVerdana" maxlength="6" value="<?php echo floatval($_SMS['rz_price_photo']);?>"> 元
              <div class="S12 C999" style="margin-top:10px">
              设置了费用，认证费用由会员支付（推荐填1~10元，可以小赚），填0由平台支付（【运营商手机实名】【人脸真人认证】0.30元/次左右）<br>
              <font class="Cf00">此认证费用只针对开启【(运营商)实名认证】和【真人认证】有效，会员认证此项目会先跳出支付页面，支付成功后认证</font>
              </div>
              
                <span class="tips2">如果给用户设置了【认证免费次数】，将免费优先</span>
        </td>
	</tr>
    
	</table>
<br><br><br><br><br>
<input name="submitok" type="hidden" value="cache_rz">
<input name="rz_data_px" id="rz_data_px" type="hidden" value="<?php echo $rz_data_px;?>">
<div class="savebtnbox"><button type="button" class="btn size3" id="save">确定并保存</button></div>
<script src="js/Sortable1.6.1.js"></script>
<script>
zeai.listEach('.rz_data',function(obj){
	var li=obj.parentNode;
	if(obj.checked){
		li.addClass('ed');
	}else{
		li.removeClass('ed');
	}
	obj.onclick = function(){
		var p=obj.parentNode;
		if(obj.checked){
			p.addClass('ed');
		}else{
			p.removeClass('ed');
		}
	}
});
function drag_init(){
	(function (){
		[].forEach.call(stepbox.getElementsByClassName('stepli'), function (el){
			Sortable.create(el, {
				group: 'zeai_rz',
				animation:150
			});
		});
	})();
}
drag_init();
save.onclick = function(){
	var DATAPX=[];
	zeai.listEach('.rz_data',function(obj){
		DATAPX.push(obj.value);
	});
	rz_data_px.value=DATAPX.join(",");
	zeai.confirm('确认要修改么？此修改将触发缓存机制同步更新，立即生效！',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			setTimeout(function(){location.reload(true);},1000);
		});
	});
}

</script>
<?php }?>
	<input name="uu" type="hidden" value="<?php echo $session_uid;?>">
	<input name="pp" type="hidden" value="<?php echo $session_pwd;?>">
</form>
<script>
<?php if($t != 'rz' && $t != 'nav'){?>
save.onclick = function(){
	zeai.confirm('确认要修改么？此修改将触发缓存机制同步更新，立即生效！',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,form:ZEAIFORM},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			setTimeout(function(){location.reload(true);},1000);
		});
	});
}
<?php }?>
/*系统基本设置*/
var uu=<?php echo $session_uid;?>,pp='<?php echo $session_pwd;?>';
if (!zeai.empty(o('logodel')))o('logodel').onclick = function(){delpic('cache_config_del_logo');}
if (!zeai.empty(o('waterimgdel')))o('waterimgdel').onclick = function(){delpic('cache_config_del_waterimg');}
if (!zeai.empty(o('subscribedel')))o('subscribedel').onclick = function(){delpic('cache_config_del_subscribe');}
if (!zeai.empty(o('pclogodel')))o('pclogodel').onclick = function(){delpic('cache_config_del_pclogo');}
if (!zeai.empty(o('m_ewmdel')))o('m_ewmdel').onclick = function(){delpic('cache_config_del_m_ewm');}
if (!zeai.empty(o('indexSharePdel')))o('indexSharePdel').onclick = function(){delpic('cache_config_del_indexShareP');}
function pplimgDel(i){
	zeai.confirm('确认要删除么？',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,data:{submitok:'pplimgDel',uu:uu,pp:pp,i:i}},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}else{zeai.alert(rs.msg);}
		});
	});
}
function bannerDel(i){
	zeai.confirm('确认要删除么？',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,data:{submitok:'bannerDel',uu:uu,pp:pp,i:i}},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}else{zeai.alert(rs.msg);}
		});
	});
}
function delpic(submitok){
	zeai.confirm('确认要删除么？',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,data:{submitok:submitok,uu:uu,pp:pp}},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}else{zeai.alert(rs.msg);}
		});
	});
}
function MnavbtmDel(i){
	zeai.confirm('确认要删除么？',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,data:{submitok:'Mnavbtm_icoDel',uu:uu,pp:pp,iarrstr:i}},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			setTimeout(function(){location.reload(true);},1000);
		});
	});
}
if(!zeai.empty(o('cache_update')))cache_update.onclick=function(){
	//zeai.confirm('确认更新么？此操作将使得用户第一次访问加载有点小慢，主要解决一些静态文件或图片上传不更新，可点此强制更新',function(){
		zeai.ajax({url:'<?php echo HOST;?>/sub/cache'+zeai.extname,data:{submitok:'config_cache',uu:uu,pp:pp}},function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			setTimeout(function(){location.reload(true);},1000);
		});
	//});
}
</script>
<br><br><br><br><br><br>
<?php require_once 'bottomadm.php';?>